SELECTLONGITUDE,OBLIGATEFROM(SELECTA.*, ROWNUM RNFROM(SELECT*FROMVSOS3WHEREDATE_TIME >= '"+endTime+" 00:00:00'AND DATE_TIME <= '"+startTime+" 23:59:59'AND SITE_NUM = '"+site+"'ORDER BYDATE_TIME DESC) AWHEREROWNUM <= "+(start + limit)+")WHERERN >= "+ (start)+"谁帮我把这句话修改为mysql的limit格式 感激不尽。
1 回答
斯蒂芬大帝
TA贡献1827条经验 获得超8个赞
SELECT
LONGITUDE,
OBLIGATE
FROM
VSOS3
WHERE
DATE_TIME >=
'"+endTime+" 00:00:00'
AND
DATE_TIME <=
'"+startTime+" 23:59:59'
AND
SITE_NUM =
'"+site+"'
ORDER
BY
DATE_TIME
DESC
LIMIT
"+ start +"
,
"+ limit +"
添加回答
举报
0/150
提交
取消