mysql 实用操作语句总结
1,根据数据表中某字段对应的属性值重复出现次数进行排序查找;
如:查看表`supe_usershare`中uname字段值中重复出现次数最高的前十个;
SELECT DISTINCT uname,count( * ) AS count FROM supe_usershare GROUP BY uname ORDER BY count DESC LIMIT 10
先记录一条,以后遇到实用的sql语句再来补充..
1,根据数据表中某字段对应的属性值重复出现次数进行排序查找;
如:查看表`supe_usershare`中uname字段值中重复出现次数最高的前十个;
SELECT DISTINCT uname,count( * ) AS count FROM supe_usershare GROUP BY uname ORDER BY count DESC LIMIT 10
先记录一条,以后遇到实用的sql语句再来补充..