oracle技.docVIP

  • 2
  • 0
  • 约3.08万字
  • 约 44页
  • 2017-06-18 发布于贵州
  • 举报
oracle技

(原创)在oracle数据库中些sql语句技巧 关键词: oracle ?? ?????????????????????????????????????? 创建一个表引用另一个表 create table testbeifen as select * from test 创建索引 create index testindex on test(a,b) 重命名表 rename test to testtemp; 查看当前用户所有表的大小 Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name 模糊查询 select * from test2 where PRODUCTNAME like %% 查某个字段是否为空: select b.GUEST_NAME from dbreports a,YSKYJ_YSZK_TABLE b where a.id=b.fileid and GUEST_CODE is null 查行不重复的 ?select distinct job from emp; 按两个字段分组查 select a.UNITCODE,b.PRODUCT_CODE,sum(b.ZP_QD),sum(b.ZP_ZD) from DBREPORTS a,QDKU_ZP_TABLE

文档评论(0)

1亿VIP精品文档

相关文档