SELECT *
LIMIT 3, (6 - 3)
Wchich返回:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6 - 3)' at line 2
我basicly想從3擋行選擇6行*
,在MSSQL是WHERE RowNumber BETWEEN 3 and 6
但動態地瞭解:from
和:to
參數instaed :from
和:size
SELECT * FROM your_table LIMIT 3,3 – Shafeeque 2014-10-01 11:33:13
我討厭在那裏使用substarction,我想動態地使用':from'和':to'參數來計算它,而不是':from'和':size' – 2014-10-01 11:34:04