MySql LOCATE() function
MySQL LOCATE() Function
Example
Search for "3" in string "W3Schools.com", and return position:
SELECT LOCATE("3", "W3Schools.com") AS MatchPosition;
Definition and Usage
The LOCATE() function returns the position of the first occurrence of a substring in a string.
If the substring is not found within the original string, this function returns 0.
This function performs a case-insensitive search.
Note: This function is equal to the POSITION() function.
Syntax
LOCATE(substring, string, start)
How To Create a Side Navigation Menu
ReplyDeleteSend and Receive Emails with Node JS
Create Simple Pagination with PHP and MySQL
Formatting the Current Date and Time in PHP
IP address tools for node.js
Types of plots in R
File Based Authentication PHP
Creating a User Login System with PHP and MySQL
Secure Registration System with PHP and MySQL