![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle 转载
文章平均质量分 64
墨雪子竹
这个作者很懒,什么都没留下…
展开
-
select count(*)和select count(1)的区别
一般情况下,Select Count (*)和Select Count(1)两着返回结果是一样的 假如表沒有主键(Primary key), 那么count(1)比count(*)快, 如果有主键的話,那主键作为count的条件时候count(主键)最快 如果你的表只有一个字段的话那count(*)就是最快的 count(*) 跟 count(转载 2015-01-09 15:29:38 · 7042 阅读 · 0 评论 -
oracle instr函数(oracle 用instr 来代替 like)
oracle instr函数 对于instr函数,我们经常这样使用:从一个字符串中查找指定子串的位置。例如: SQL> select instr('oracle','or') position from dual; POSITION ---------- 1 从字符串'oracle'的第一个位置开始,向后查找第一个出现子串'or'出现的位转载 2015-01-09 15:34:00 · 727 阅读 · 0 评论