2016-11-12 193 views

回答

0

試試這個

SELECT id FROM (SELECT id FROM (SELECT id FROM table ORDER BY id ASC LIMIT 50) AS tbl ORDER BY id DESC LIMIT 5) as tbldata ORDER BY id ASC 
0

這個工程:

SELECT ID FROM(SELECT ID,日期FROM表ORDER BY日期LIMIT 50)AS 不是Temptable ORDER BY日期DESC LIMIT 5

相關問題