In mysql, to find position of the string in another string we use POSITION function. Here! Position function syntax:
1 |
POSITION(substring IN string) |
Example:
1 |
POSITION("somo" IN "nosomovo") |
The result of this statement is…
Xem thêm How to get string position in another string in mysql?