SWITCH(F4,1,sql("FRDemo","SELECT * FROM STSCORE where CLASSNO = 'Class1' ",3,1),2,sql("FRDemo","SELECT * FROM STSCORE where CLASSNO = 'Class1' ",3,2),'3',sql("FRDemo","SELECT * FROM STSCORE where CLASSNO = 'Class1' ",3,3))
根据不同的值,执行不同数据集的sql,“FRDemo”这个可以替换成其他数据集,可以同时执行不同数据集的。已测试正常使用。