IF(@ActiveStatus = 1)
BEGIN
@PasswordStatus = 3
END
ELSE
SET @PasswordStatus = (SELECT password_status
FROM tbl_user
WHERE login_name = @LoginName_fromApp
AND [email protected]
)
我使用的是Microsoft SQL Server Management Studio中..這是一個語法錯誤嗎?
MySQL和MSSQL不同的DBMS,我已經改變了標籤! – 2012-07-26 06:52:49
嘿不要忘記標記爲接受或upvote它,如果解決方案適用於你.. – 2012-07-26 07:00:06