用到的oracle sql语句-001

来源:互联网 发布:tplink网络设置 编辑:程序博客网 时间:2024/04/30 18:20
1、查询结果合并集合可使用union all ,例如:select 条件1union  allselect 条件22、无连续id的分页 select  ROWNUM AS ROWNUMMBER,tab.* from  表名 tab where ROWNUM>起始个数 and ROWNUM < 结束个数 3、判断包含字符串使用 instr函数,例如:instr(字符串1,字符串2)>04、删除重复记录delete   表名   where   [指定字段]   not   in   ( select   max([指定字段])   from   YourTable   group   by   指定字段 ) 

原创粉丝点击