sql("DDB",
"select
FLAG_PUBLISH,
VERSION
FROM PSA_SALE
WHERE
VERSION = (SELECT MAX(VERSION) FROM PSA_SALE WHERE ORG_ID='"+$ORG+"'
AND PERIOD_ID='"+$PERIOD+"')",1,1)
字段写错了
SQL上每错,你现在什么情况
公式没问题