1.记录去重
delete from tlbb.tlbb_bind_log
where rowid not in (select max(rowid)
from tlbb.tlbb_bind_log
where BUY_TIME >= to_date('2012-07-10', 'yyyy-mm-dd')
and BUY_TIME < to_date('2012-07-12', 'yyyy-mm-dd')
group by sn)
and BUY_TIME >= to_date('2012-07-10', 'yyyy-mm-dd')
and BUY_TIME < to_date('2012-07-12', 'yyyy-mm-dd');

本文详细介绍了如何使用SQL语句实现特定日期区间内的去重操作,包括筛选条件和执行步骤。
736

被折叠的 条评论
为什么被折叠?



