1

我想将一个变量与数据库条目进行比较,如果它们匹配则从该帐户中提取一些信息,如果它们不匹配则结束查询。

SELECT
    Account.ID AS ID,
    Account.Fax AS Fax,
    Account.MsgBalance AS MsgBalance
FROM
    Account
WHERE
    Account.ID = '{=Variables("AccountIDPull")}'
    AND Account.Fax LIKE '%{=Variables("NumberPull")}'

(我知道这点不起作用,但我该怎么做?)然后获取 Account.MsgBalance 详细信息 ELSE End 查询

4

0 回答 0