查數據庫三個字段相同的sql

SELECT * FROM test_abc T1 WHERE EXISTS(SELECT 1 FROM test_abc T2 WHERE T2.ID!=T1.ID AND T2.A=T1.A AND T2.B=T1.B AND T2.C=T1.C)
相關文章
相關標籤/搜索