Mega Code Archive

 
Categories / MySQL / String
 

SUBSTRING(string, position)

mysql> mysql> SELECT SUBSTRING('cats and dogs', 10); +--------------------------------+ | SUBSTRING('cats and dogs', 10) | +--------------------------------+ | dogs                           | +--------------------------------+ 1 row in set (0.00 sec)