📜  mysql 查询 where in select - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:59.379000             🧑  作者: Mango

代码示例1
SELECT *
FROM some_table
WHERE relevant_field IN
(
    SELECT * FROM
    (
        SELECT relevant_field
        FROM some_table
        GROUP BY relevant_field
        HAVING COUNT(*) > 1
    ) AS subquery
)