USE SRO_VT_ACCOUNT
IF EXISTS(SELECT UserID FROM [dbo].[_BlockedUser] WHERE UserID = 'ThElitEyeS1')
BEGIN
DELETE FROM [dbo].[_BlockedUser] WHERE UserID = 'ThElitEyeS1';
PRINT 'EXIST' AS status
END
ELSE
BEGIN
PRINT 'NOT EXIST' AS status
END
然后通过php选择它
while ($row = mssql_fetch_array(...)) {
echo $row["status"];
}
有可能吗?
答案 0 :(得分:2)
试试这个:
SELECT 'EXIST' AS field_name