数据集里面满足参数=1执行第一条sql 满足参数=2执行第二条sql。满足参数=3执行第三条sql。写法例如:if(isv=='${isv}') begin select * from demo end else if begin select * from test end else begin select * from demotest end 有用过这样的写法的吗?我这边一直没研究出来。请大神赐教
${if(isv='isv1',"select * from demo",if(isv='isv2',"select * from test","select * from demotest"))}
——或者
select * from ${if(isv='isv1','demo',if(isv='isv2','test','demotest'))}
————————————————————