文件名称:帐套不能启用出现数据库问题 重复键
文件大小:302B
文件格式:TXT
更新时间:2014-05-25 16:49:08
icinvinitial表
设表名为X,字段为C1,C2,C3,.... 做一下查询: select count(*),c1,c2,c3,.... from X group by c1,c2,c3.... having count(*)>1 SELECT COUNT(*) AS RowNumber,COL1,COL2 FROM TABLE1 T1 WHERE (SELECT COUNT(*) FROM TABLE1 T2 WHERE T1.COL1 = T2.COL1 AND T1.COL2 = T2.COL2)>1 GROUP BY COL1,COL2