详细的问题 要看到的结果是 解决的方法是: select * from hx_msgcenter(表名) where id in (select max(id) from hx_msgcenter group by MsgID) 转载于:https://www.cnblogs.com/ylldbk/p/5311097.html