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