(select
id as contentid,contour,title,CONCAT(date_format(validstarttime,'%Y.%m.%d'),"-",date_format(validendtime,'%Y.%m.%d')) as validtime
from tbl_activity_info
order by istop desc, updatetime desc)
limit ?,?
在执行以上sql时出现这个异常,但是执行结果是出来了
在将sql改成以下情况就不报错了
select
id as contentid,contour,title,CONCAT(date_format(validstarttime,'%Y.%m.%d'),"-",date_format(validendtime,'%Y.%m.%d')) as validtime
from tbl_activity_info
order by istop desc, updatetime desc
limit ?,?
(select id as contentid,contour,title,CONCAT(date_format(validstarttime,'%Y.%m.%d'),"-",date_format(validendtime,'%Y.%m.%d')) as validtime from tbl_activity_info order by istop desc, updatetime desc) limit ?,? 在执行以上sql时出现这个异常,但是执行结果是出来了 在将sql改成以下情况就不报错了 select id as contentid,contour,title,CONCAT(date_format(validstarttime,'%Y.%m.%d'),"-",date_format(validendtime,'%Y.%m.%d')) as validtime from tbl_activity_info order by istop desc, updatetime desc limit ?,?