SQL删除部分字段重复

来源:互联网 发布:淘宝法国灰太太正品吗 编辑:程序博客网 时间:2024/05/01 06:52
delete t1 from futures t1where exists(  select 1   from futures  t2  where t1.Code = t2.Code and t1.date = t2.date and t1.volume<t2.volume  group by Code,date)--在 table futures中,删除字段code、date相同,当时字段volume值较小的行

0 0
原创粉丝点击