SELECT * FROM prologic WHERE ID IN (
SELECT GROUP_CONCAT( DISTINCT ID ) from (
SELECT GROUP_CONCAT( DISTINCT ID )ID
FROM `prologic`
GROUP BY Vendor_Code
HAVING COUNT( * ) >1
)c
)
请指导我解决。
答案 0 :(得分:0)
SELECT * FROM prologic WHERE ID IN( 从prologic中选择DISTINCT ID GROUP BY Vendor_Code 有COUNT(*)> 1 )