2012-12-20 94 views

回答

1

應該可以直接使用ROW_NUMBER OLAP function數點重複刪除:

DELETE FROM (
    SELECT A, ROW_NUMBER() OVER (PARTITION BY A) AS RN 
    FROM my_table 
) 
WHERE RN > 1 

我靠this discussion而寫以上。