6、LocalSql
点自动生成会生成出sql,自己再根据实际要求修改
【动态条件】允许动态添加条件,不用写一大堆的IF else分支例如:
IF ISNULL(:sImportTypeList,0x)=0x
BEGIN
SELECT
from dbo.AAA
END
ELSE
BEGIN
SELECT
from dbo.AAA
where iIden IN (SELECT Item FROM dbo.fnpbConvertStringToTable(:sImportTypeList,','))
END
以前这样的SQL,现在可以直接改写为
SELECT *
from dbo.AAA
WHERE ({0})
然后sDyncCondition设置为
IFCondition(:f[outParam.sImportTypeList]<>,iIden IN (SELECT Item FROM dbo.fnpbConvertStringToTable(:sImportTypeList,','))