我想更新table1
中的记录name,appid
,并匹配id
。下面的语句将更新table1值与下面的语句带条件的更新记录
update table1 set [email protected],[email protected] where [email protected]
我想多一个条件。更新此id
的所有记录,但appid
不应更新,如果(@appid is null or id=54)
。我如何限制一列(appid
)。或者我应该写另一个更新声明?我可以格式化上述查询。请帮忙
貌似运作良好.. :) –