故笙I诉离歌(提问者)我这边的数据集是一个视图啊,有排序操作,用你这条语句话报错误代码:1301 数据集配置错误Query:ORA-00933: SQL 命令未正确结束啊,是什么肥事
SQL如下select * from v_ty_app_dcxx d order by d.id,d.yue
${if(len(starttime)=0,\"\",\" and 月份>=\'\"+starttime+\"\'\")}
${if(len(endtime)=0,\"\",\" and 月份<=\'\"+endtime+\"\'\")}
say 回复 故笙I诉离歌(提问者)select * from v_ty_app_dcxx d order by d.id,d.yue ${if(len(starttime)=0,\\\"\\\",\\\" and 月份>=\\\'\\\"+starttime+\\\"\\\'\\\")} ${if(len(endtime)=0,\\\"\\\",\\\" and 月份<=\\\'\\\"+endtime+\\\"\\\'\\\")}
你这样写是不对啊,试试select * from v_ty_app_dcxx d where 1=1 ${if(len(starttime)=0,\\\"\\\",\\\" and 月份>=\\\'\\\"+starttime+\\\"\\\'\\\")} ${if(len(endtime)=0,\\\"\\\",\\\" and 月份<=\\\'\\\"+endtime+\\\"\\\'\\\")}order by d.id,d.yue