2016-07-08 28 views

回答

3

不,你應該使用is not null

update tbl set oldcol = null where oldcol is not null and newcol is not null 
+0

它也可以和Sqlite一起使用嗎? –

+0

@HarshGupta:是的 – potashin

-1

你也可以用這個。 UPDATE table SET oldCol = NULL WHERE(oldCol不爲NULL且newCol不爲NULL)