📜  mysql Like(在字符串中搜索) - SQL 代码示例

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

代码示例1
SELECT * FROM users WHERE dept LIKE 'd%';
SELECT * FROM users WHERE dept LIKE 'dev%';
SELECT * FROM users WHERE dept LIKE '%t';
SELECT * FROM users WHERE dept LIKE '%e%';

--here '%' means any number of characters and "_" single character