开发者

null value for all rows of a column!

开发者 https://www.devze.com 2022-12-28 14:17 出处:网络
Is there any way for setting all the rows of a column to a null value?开发者_如何学C thanksHow about something simple like : Update MyTable Set MyColumn = NULL

Is there any way for setting all the rows of a column to a null value?开发者_如何学C thanks


How about something simple like : Update MyTable Set MyColumn = NULL

Or, did you mean you wanted to set all columns in a row to NULL? If so, you have a database design problem. You should greatly limit what columns in a database accept NULL values.


Sure.

UPDATE table SET column = NULL

If you don't include a WHERE clause, the statement will affect all the rows in the table.

0

精彩评论

暂无评论...
验证码 换一张
取 消