Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

What is the difference between the LIKE and REGEXP operators in mysql?

LIKE and REGEXP operators are used to express with ^ and %.

SELECT * FROM employee WHERE emp_name REGEXP "^b";
SELECT * FROM employee WHERE emp_name LIKE "%b";
 
PREVIOUS NEXT
Tagged: #What #difference #LIKE #REGEXP #operators
ADD COMMENT
Topic
Name
7+9 =