LIKE操作符

Mysql基础第十一天,用通配符进行过滤_操作符

select cust_name from customers where cust_name like '%ou%';  // %通配符  %ou  以ou结尾 ou%以ou开头  %ou% 中间包含ou
select cust_name from customers where cust_name like '_ou%'; // _通配符 _ou ou前面有一个任意字符 __ou ou前面有二个任意字符 ou__ ou后面有二个任意字符
select vend_name from vendors where binary vend_name liske 'jet%'; // binary 区分大小写

使用通配符的技巧

Mysql基础第十一天,用通配符进行过滤_操作符_02