回复人: zjcxc(邹建) ( ) 信誉:216 2004-01-16 14:19:00 得分:0
select distinct * from 表 a
where createtime=(select max(createtime) from 表 where username=a.username)
order by createtime
--用distinct 是为了保证,如果createtime要相同,只取一个.如果没有这个问题,不需要distinct
--说明,如果你的表中就这两个字段,大家的方法都可以.