会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Json's Webblog
hello china
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
mysql
查询不重复的用户名的最新信息
摘要:1.select tt.* from( select * from comments order by theTime desc) as tt group by newsID2.select * from comments as tt group by id,newsID,comment,theTime havingtheTime=(select max(theTime) from comments where newsID=tt.newsID)
阅读全文
posted @
2013-05-17 11:25
河边的老牛
阅读(117)
评论(0)
推荐(0)
公告