Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在一列中显示具有 3 个或更多相等数据的行,例如:
1 1 1 2 2 3 3 3
这样我的选择就显示
1 3
SELECT YourColumn FROM YourTable GROUP BY YourColumn HAVING COUNT(*) >= 3;