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.
是否可以选择或获取具有相同值的列的记录而无需任何参数进行比较?
(第 1 行,第 1 列)。值 = 5 (Row2, Column1).Value = 3 (Row3, Column1).Value = 5 (Row4, Column1).Value = 5
您可能会注意到Row1、Row3和Row4具有相同的值。我想得到那些记录。注意:没有像这样比较的参数:SELECT * FROM Table WHERE Column1 = 5(这是参数)
我问是否有可能没有任何参数进行比较。
就像是:
SELECT ... FROM ... WHERE Column1 IN (SELECT Column1 FROM Table GROUP BY Column1 HAVING COUNT(*) > 1)