sql設置一個字段爲空(null)

UPDATE   project_file   set   file = null   where   id = 7            結果爲:空(null)   不是字符串'null'

 

UPDATE   project_file   set   file = 'null'   where   id = 7           結果爲:'null'               是字符串

 

UPDATE   project_file   set   file   is   null   where  id = 7            報錯

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章