NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

MYSQL STRING FUNCTIONS

-- select bin(46) -> returns in binary form
-- select ascii('ab') -> returns ascii number of left most number or char supplied
-- SELECT char_length('dkkfhdh3r4hfhafa') -> returns no. of characters present in a supplied string
-- SELECT CONCAT('My', 'shaf' ,'S', 'QL') -> concatenates all the strings into a single string
-- SELECT CONCAT_WS(' % ','First name',NULL,'Last Name', 'shafi') -> concatenates all the string with a user defined separator as a first argument
-- SELECT ELT(5, 'Aa', 'Bb', 'Cc', 34, 'shafi') -> returns the Nth element of the list of strings
-- SELECT FIELD('Shafi', 'Aa', 'shafi','Bb', 'Cc', 'Dd', 'Ff'); -> looks for 1st argument in the remaining arguments
-- SELECT FIND_IN_SET('b','a,b,c,d') -> same as field() but it looks in a single set only
-- SELECT INSERT('Quadratic', 3, 100, 'What') -> adds what from 3rd position to next 100 positions
-- select instr('djfkshafjfjdlfjajasha','sha') -> Returns the position of the first occurrence of substring substr in string
-- lcase('sSHAI'), LOWER('SHFA'), UPPER('shaf'), ucase('adfha) -> converts lower case to upper and vice versa
-- SELECT REPEAT('MySQL', 3) = MySQLMySQLMySQL
-- SELECT REPLACE('www.mysql.com', 'w', 'vv') = vvvvvv.mysql.com
-- SELECT REVERSE('abc df') =fd cba
-- SELECT TRIM(both/trailing/leading 'x' FROM 'xxxbarxxx') to remove extra spaces ltrim(),rtrim() are alternatives
SELECT SUBSTRING('Quadratically',5);
-> 'ratically'
mysql> SELECT SUBSTRING('foobarbar' FROM 4);
-> 'barbar'
mysql> SELECT SUBSTRING('Quadratically',5,6);
-> 'ratica'
mysql> SELECT SUBSTRING('Sakila', -3);
-> 'ila'
mysql> SELECT SUBSTRING('Sakila', -5, 3);
-> 'aki'
mysql> SELECT SUBSTRING('Sakila' FROM -4 FOR 2);


     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.