📜  mysql 中的 LIKE 和 REGEXP 运算符有什么区别? - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:56.434000             🧑  作者: Mango

代码示例1
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";