[实例提问] 不显示重复数据的排序
发布网友
发布时间:2024-03-17 00:44
我来回答
共1个回答
热心网友
时间:2024-03-21 18:50
$favorites_query = DB::query("SELECT * FROM ".DB::table('favorites')." WHERE ID IN
( select max(id) from ".DB::table('favorites')." GROUP BY svip )
ORDER BY svupdatetime DESC LIMIT $start_limit, $perpage");