${if (substr('$date1',5,2) == "01","select * from B","select * from A")} ,这个IF判断是哪里有问题吗
${if (mid(date1,5,2) == "01","select * from B","select * from A")}
${if(mid(date1,5,2) = "01","select * from B","select * from A")}
要用mid函数了。你这样写的时候,要用帆软内置的函数mid同时最外面加了${}后。里面的不用加$了。。