LOCATE(, ) : LOCATE « String « SQL / MySQL






LOCATE(, )

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

   
    
    
    
  








Related examples in the same category

1.LOCATE(, , )
2.SELECT LOCATE('A','abc');
3.SELECT LOCATE('A',BINARY 'abc');