select * from zwfw_region t where (select count(1) from zwfw_region where uniquecoding=t.regioncode and regioncode=t.uniquecoding) and LENGTH(uniquecoding) =6

查询一张表中某两个字段相同的数据
本文介绍了一种使用SQL进行复杂条件筛选的方法,通过一个具体的例子展示了如何确保查询结果的准确性及提高查询效率。
本文介绍了一种使用SQL进行复杂条件筛选的方法,通过一个具体的例子展示了如何确保查询结果的准确性及提高查询效率。
select * from zwfw_region t where (select count(1) from zwfw_region where uniquecoding=t.regioncode and regioncode=t.uniquecoding) and LENGTH(uniquecoding) =6


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