码迷,mamicode.com
首页 > 其他好文 > 详细

2. instr用法

时间:2017-03-28 17:24:57      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:rom   color   from   acl   str   select   1.4   style   count   

跟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用法

标签:rom   color   from   acl   str   select   1.4   style   count   

原文地址:http://www.cnblogs.com/zkx4213/p/6634632.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!