📜  如果参数不为空,则更新 sql 存储过程 - SQL 代码示例

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

代码示例1
Update [Users]
set    FirstName = IsNull(@FirstName, FirstName),
       -- If you want to check for empty strings as well
       City = ISNULL(NULLIF(@City, ''), City),
       ....
Where  ...