最近一次登录记录

SELECT ip FROM rc_record_login WHERE (uid, addtime) IN (SELECT uid,max(addtime) FROM rc_record_login GROUP BY uid)

 

posted @ 2017-05-16 10:05  Xiao|Deng  阅读(203)  评论(0编辑  收藏  举报