Two same data field values in a table query

SELECT  user_id , COUNT ( user_id ) AS  ' number Duplicate '  from sys_user_position the GROUP   BY  user_id   the HAVING  COUNT ( user_id ) >  . 1

 

Guess you like

Origin www.cnblogs.com/lzghyh/p/12341344.html