SELECT
LONGITUDE,
OBLIGATE
FROM
(
SELECT
A.*, ROWNUM RN
FROM
(
SELECT
*
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
) A
WHERE
ROWNUM <= "+(start + limit)+"
)
WHERE
RN >= "+ (start)+"
谁帮我把这句话修改为mysql的limit格式 感激不尽。
斯蒂芬大帝