判断字段是否存在重复数据

select code from bd_psndoc c where c.code in(select c.code from bd_psndoc c group by c.code having count(*)>1)

posted @ 2020-06-24 14:59  cqyyck  阅读(484)  评论(0编辑  收藏  举报