我想比较一个变量和数据库条目,如果它们匹配,然后从该帐户中提取一些信息,如果它们不然后结束查询。
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结束查询