How to update column with null value

前端 未结 13 673
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 05:08

I am using mysql and need to update a column with a null value. I have tried this many different ways and the best I have gotten is an empty string.

Is there a speci

13条回答
  •  长情又很酷
    2020-12-13 05:54

    If you want to set null value using update query set column value to NULL (without quotes) update tablename set columnname = NULL

    However, if you are directly editing field value inside mysql workbench then use (Esc + del) keystroke to insert null value into selected column

提交回复
热议问题