经常用到,做下记录:
SELECT * FROM #TABLE_NAME WHERE #FIELD_NAME IN (SELECT #FIELD_NAME FROM #TABLE_NAME GROUP BY #FIELD_NAME HAVING COUNT(#FIELD_NAME)>1)
经常用到,做下记录:
SELECT * FROM #TABLE_NAME WHERE #FIELD_NAME IN (SELECT #FIELD_NAME FROM #TABLE_NAME GROUP BY #FIELD_NAME HAVING COUNT(#FIELD_NAME)>1)