国产成人毛片视频|星空传媒久草视频|欧美激情草久视频|久久久久女女|久操超碰在线播放|亚洲强奸一区二区|五月天丁香社区在线|色婷婷成人丁香网|午夜欧美6666|纯肉无码91视频

先分組后分配 mysql先排序后分組?

mysql先排序后分組?用分組函數(shù)來(lái)做,假如你的表名是table_nameselect A.*from table_name A,(select product,max(date) max_date

mysql先排序后分組?

用分組函數(shù)來(lái)做,假如你的表名是table_nameselect A.*from table_name A,(select product,max(date) max_date from table_name group by product) Bwhere A.product=B.product and A.date=B.max_date