怎么通过if函数去执行多个SQL 比如我timeValue输入1时 执行SQL1,输入2时执行SQL2,输入3时执行SQL3,我现在的写法是这样运行的时候会报错,并且执行单个SQL就没问题(只有一个SQL1 ,我输入1就执行SQL1),嵌套两个或以上就报SQL语法错
${if(timeValue=1,"sql1",
${if(timeValue=2,"sql2",
${if(timeValue=3,"sql3",""
)}
${if(timeValue=1,"sql1",if(timeValue=2,"sql2",if(timeValue=3,"sql","")))}