ibatis生成的sql语句未正确结束,麻烦大神给看看
就是这一句SELECT*FROM(SELECTord.*,ROWNUMRNORDFROM(SELECTID,USERID,HOUSEID,TOTALPRICE,START...
就是这一句
SELECT * FROM (SELECT ord.*,ROWNUM RNORD FROM ( SELECT ID,USERID,HOUSEID,TOTALPRICE,STARTTIME,ENDTIME,STATUS,CREATETIME,MODIFYTIME FROM H_ORDER WHERE 1=1 and
USERID = 41 and STATUS = 1 ORDER BY ID DESC ) WHERE ROWNUM < 5 ) ord) WHERE RNORD > 1 展开
SELECT * FROM (SELECT ord.*,ROWNUM RNORD FROM ( SELECT ID,USERID,HOUSEID,TOTALPRICE,STARTTIME,ENDTIME,STATUS,CREATETIME,MODIFYTIME FROM H_ORDER WHERE 1=1 and
USERID = 41 and STATUS = 1 ORDER BY ID DESC ) WHERE ROWNUM < 5 ) ord) WHERE RNORD > 1 展开
1个回答
2015-10-28
展开全部
括号都不对应,,,,,,,,BTW,SQL不要写那么复杂的,调试麻烦,效率不高。
追问
能不能指出哪个括号不对应?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询