2011-05-14 74 views
3

如何更新列值(varchar(20), not null)用“空白”的值更新列?如何用“空白”价值

+3

尝试什么,哪个数据库? – 2011-05-14 04:56:14

+0

[如何到空-A-列在MySQL的](http://dba.stackexchange.com/questions/54111/how-to-empty-a-column-in-mysql) – here 2015-12-17 20:37:59

回答

7

如果要使用NULL进行更新,您需要将其更改为允许NULL。否则,用空字符串""更新。

3
Update TableName Set ColumnName='' where [Condtion] // To update column with an enpty values