如何在存储过程中,使用条件循环和判断
CREATE PROCEDURE CheckNumber @InputNumber INT AS BEGIN IF @InputNumber % 2 = 0 BEGIN PRINT CONCAT(@InputNumber, ' 是偶数'); END ELSE
CREATE PROCEDURE CheckNumber @InputNumber INT AS BEGIN IF @InputNumber % 2 = 0 BEGIN PRINT CONCAT(@InputNumber, ' 是偶数'); END ELSE