`
fantasy
  • 浏览: 506473 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

oralce常用SQL语句

阅读更多

1.复制表 从B表复制到A表,会丢失主键和索引

create table A as select * from B

 2.删除某张表排序后的前三十万笔数据,注意排序的列要见索引

delete from fm_temp t where t.dctime in

select dctime from (select dctime from fm_temp f  order by  f.dctime) where ROWNUM < 300000

 )

fm_temp是表名,dctime是排序的列

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics