UPDATE a SET a.test= 0 FROM #table a WHERE a.test is null UPDATE a SET a.test= 0 FROM #table a WHERE a.test = null
sqlserver下没区别。