Mysql sorted according to the number of repetitions of fields

select source_job_number,count(*) as count from v1_user WHERE source_id=3 group by source_job_number ORDER BY count DESC;

Guess you like

Origin www.cnblogs.com/jackzhuo/p/11428710.html