2. instr用法

Posted zkx4213

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2. instr用法相关的知识,希望对你有一定的参考价值。

跟oracle中的instr用法一样:

SQL> select count(*) from t where instr(title,?oracle?)>0; COUNT(*) ———- 5478 
Elapsed: 00:00:11.04 


SQL> select count(*) from t where title like ”%oracle%?; COUNT(*) ———- 5478 
Elapsed: 00:00:31.47

注: 
instr(title,‘oracle?)>0 相当于like 

instr(title,‘oracle?)=0 相当于not like

以上是关于2. instr用法的主要内容,如果未能解决你的问题,请参考以下文章