)
我已经对其进行了修改以满足我的特定需求:
SELECt * FROM( SELECt *, @num := if(@some_id = some_id, @num := @num + 1, 1) as row_num,@some_id := some_id as some_id FROM example ORDER BY last_modified DESC) as eWHERe row_num <= 5
欢迎分享,转载请注明来源:内存溢出
)
我已经对其进行了修改以满足我的特定需求:
SELECt * FROM( SELECt *, @num := if(@some_id = some_id, @num := @num + 1, 1) as row_num,@some_id := some_id as some_id FROM example ORDER BY last_modified DESC) as eWHERe row_num <= 5
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)