标签: sql-server
我有一个名为tUser的表。列是:
tUser
UserID
FirstName
SecondName
LastName
Email
如果SecondName为空,我需要更新FirstName。我怎么能这样做?
答案 0 :(得分:0)
update tUser set SecondName=FirstName where SecondName is null or SecondName ='NULL' or SecondName ='null'