相似记录中查找出最新的一条记录
作者:互联网
SELECT a* FROM amj_aged_nursing_cost a WHERE NOT EXISTS( SELECT * FROM amj_aged_nursing_cost b WHERE b.aged_card_num = a.aged_card_num AND b.create_time > a.create_time AND b.id > a.id ) ORDER BY a.aged_card_num
标签:amj,cost,nursing,记录,查找,num,相似,aged,card 来源: https://www.cnblogs.com/ikunn/p/16575625.html