SELECT `author` , `authorid` , count( * ) AS times
FROM `pre_forum_post`
GROUP BY `author`
ORDER BY times DESC
LIMIT 0 , 5
常用mysql语句备忘
原创
©著作权归作者所有:来自51CTO博客作者axiaotuzi的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:如何建立数据库
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Protobuf联手FastAPI备忘
本文介绍ProtoBuf相关信息,并介绍在著名后端框架FastAPI中的大致使用思路,离实战还差一大截,仅供参考。
序列化 FastAPI ProtoBuf Cocos creator -
Mysql 常用函数
Mysql常用函数
mysql 常用函数 mysql函数 -
sql语句备忘(dba)
user_tab_comments;表注释 user_col_comments;表字段注释 以上两个只能获取自己用户的表的注释信息,如果要访问自己能够
SQL SQL Server Oracle 表空间 表名 -
常用 emacs 命令 备忘
C-x C-f 寻找文件。C-x C-s 保存文件。C-x C-b 列出缓冲区。C-x C-c
emacs 搜索 字符串 剪切板 -
gcc常用参数,备忘
法还是有,那就是:sprintf。c...
GCC C C++ C# DOS -
MySQL 语句备忘
删除重复记录的方法,:http://dadloveu.blog.51cto.co
mysql 字段 sql 数据库操作 导入数据