我想知道“ONE”(大写)何时会打印在下面的代码中??
CREATE PROCEDURE TESTCASE
@ID bigint
AS DECLARE
@VAR bigint
BEGIN
SELECT
CASE @ID
WHEN 1 THEN 'One'
WHEN 2 THEN 'Two'
WHEN 1 THEN 'ONE'
END
END
EXEC TESTCASE 1
我想知道“ONE”(大写)何时会打印在下面的代码中??
CREATE PROCEDURE TESTCASE
@ID bigint
AS DECLARE
@VAR bigint
BEGIN
SELECT
CASE @ID
WHEN 1 THEN 'One'
WHEN 2 THEN 'Two'
WHEN 1 THEN 'ONE'
END
END
EXEC TESTCASE 1