判断变量是否为NULL:
IF (@VaribleName IS NULL)
选择字段值为NULL的记录:
WHERE COLUMN_NAME IS NULL
ISNULL()函数:
ISNULL(@VaribleName, ‘DefaultValue’)
ISNULL(COLUMN_NAME, ‘Default Value’)
判断变量是否为NULL:
IF (@VaribleName IS NULL)
选择字段值为NULL的记录:
WHERE COLUMN_NAME IS NULL
ISNULL()函数:
ISNULL(@VaribleName, ‘DefaultValue’)
ISNULL(COLUMN_NAME, ‘Default Value’)