instr(title,'手册')>0 相当于 title like '%手册%' instr(title,'手册')=1 相当于 title like '手册%' instr(title,'手册')=0 相当于 title not like '%手册%'
SQL> set timing on SQL> select count(*) from t where instr(title,'手册')>0; COUNT(*) ---------- 65881 Elapsed: 00:00:11.04 SQL> select count(*) from t where title like '%手册%'; COUNT(*) ---------- 65881 Elapsed: 00:00:31.47 SQL> select count(*) from t where instr(title,'手册')=0; COUNT(*) ---------- 11554580 Elapsed: 00:00:11.31 SQL> select count(*) from t where title not like '%手册%'; COUNT(*) ---------- 11554580
instr(title,'aaa')>0 相当于like instr(title,'aaa')=0 相当于not like
select id, name from users where instr('101914, 104703', id) > 0;
select id, name from users where id = 101914 or id = 104703;
select * from tb where name like '%XX%'; select * from tb where instr(name,'XX')>0;
create index idx_tb_name on tb(name);
select * from tb where instr(name,'XX')>0;
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有