mysql group_concat 函数在我想尝试如下的条件下使用子查询:
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
)
请指导我解决它。
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
)
请指导我解决它。