日期:2014-05-16 浏览次数:20598 次
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