首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

获得表某个分组的最大值

2012-07-18 
取得表某个分组的最大值select * from tablename a where a.createdate(select max(b.createdate) from t

取得表某个分组的最大值

select * from tablename a where a.createdate=(select max(b.createdate) from tablename b where a.channel=b.channel)

热点排行