Distinct与ID字段的问题,在线等待
zergs 2002-06-22 07:27:18 原表有ID,姓名,性别等字段,但是无意中有些记录重复.我想清除重复记录,但仍要保持ID字段(字段内容可以改变),我按下面方法做,没了ID字段.怎么办?
conn.Execute "select distinct(*) into 临时表 from 原表"
conn.Execute "delete from 原表"
conn.Execute "select * into 原表 from 临时表"
conn.Execute "drop table 临时表"