Code


select * from table1 a  where
a.id
=(
 
select max(id) from table1 b
where a.name=b.name
group by b.name
 )

posted on 2009-09-22 19:14  netfuns  阅读(235)  评论(0)    收藏  举报