查询总数据量
select count(*)from “YWZT”.“YWZT_0111_0” ;
查询去重后端数据量
select count(distinct(PSRID))from “YWZT”.“YWZT_0111_0” ;
PSRID :要去重的字段
去重
表达式:
delete from table a where rowid !=(select max(rowid)
from table b where a.字段=b.字段 )
例子
delete from “YWZT”.“YWZT_0111_0” a where rowid !=(select max(rowid) from “YWZT”.“YWZT_0111_0” b where a.PSRID=b.PSRID ) ;
10万+



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



