📜  在 sql server 中执行标量 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:55.004000             🧑  作者: Mango

代码示例1
DECLARE @IsDuplicate BIT
          
        IF EXISTS(SELECT * FROM dbo.ListData WHERE [description] = @description AND [dataTypeId] = @dataTypeId) -- Checking if duplicate name
                    SET @IsDuplicate = 1

        ELSE
            BEGIN
            
            END