摘要: 一个用户表,一个聊天记录表,两个表联合查询获取聊天表中用户最新的一条聊天数据 select c.contentfrom sixin as c where c.tid = a.user_idorder by ctime desc limit 0,1) as content,(select c.stat 阅读全文
posted @ 2017-03-27 19:29 幸福之家128817 阅读(2560) 评论(0) 推荐(0) 编辑