js_id times 11 1026 12 1026 11 1026 11 1026 13 1025SQL code: select js_id,count(*) as total from topclick where times='1026' group by js_id order by total desc limit 1;
Äã̫˧ÁË£¬¸çÃÇ~ select times,js_id,count(js_id) as num from topclick group by times,js_id ´ÓÕâÀï±ßÕÒ³öÄãÏëÒªµÄËæ±ãÄĸöjs_id ×î¶àµÄ¾ÍÐÐ Õý½â¡£
ÒòΪ²éѯ³öÀ´ÓкܶàÏàͬµÄ"js_id,times"¼Ç¼£¬Ã¿¸öjs_id¶¼¶ÔÓ¦¶à¸öÏàͬµÄtimes¡£ ÏÂÃæÐ´·¨ÓиüºÃµØ¿É¶ÁÐÔ£º select js_id,count(times) as total from topclick where times='1026' group by js_id order by total desc limit 1;