1. 程式人生 > >sql 去除重複記錄只取一條

sql 去除重複記錄只取一條

sql 去除重複只取一條


SELECT * FROM tbl_auth_session  a where id = (SELECT id from tbl_auth_session where a.account_id = account_id ORDER BY creation_date DESC limit 0,1)