摘要: declare v_sql varchar2(1000); TABLE_NAME VARCHAR2(100); I_DAY VARCHAR2(8) := '20120611'; I_L_DAY VARCHAR2(8); begin I_L_DAY := TO_CHAR((TO_DATE(I_DAY, 阅读全文
posted @ 2012-06-25 09:54 wingsless 阅读(806) 评论(0) 推荐(0) 编辑
摘要: DELETE FROM table1 WHERE id IN (SELECT id FROM table1 GROUP BY id HAVING COUNT(id) > 1) AND ROWID NOT IN (SELECT MIN(ROWID) FROM table1 GROUP BY id HA 阅读全文
posted @ 2012-06-25 09:46 wingsless 阅读(327) 评论(2) 推荐(0) 编辑