How to make a field NULL using MySQL GUI Tools?

后端 未结 6 1683
误落风尘
误落风尘 2020-12-18 17:57

I\'m using the MySQL Query Browser (part of the MySQL GUI Tools) and need to change a field to NULL, but I can\'t figure out how to do it - if I delete the value it tries to

相关标签:
6条回答
  • 2020-12-18 17:59

    I'd try Ctrl-0 (zero), because that works in some tools.

    0 讨论(0)
  • 2020-12-18 18:00

    Right-click on that column and select the

    'Set field to Null'

    option from the context menu.

    0 讨论(0)
  • 2020-12-18 18:09

    In MySQL Workbench, with the cell selected, press Shift + Delete

    Tested on 6.3.4.0

    0 讨论(0)
  • 2020-12-18 18:11

    Removing the contents:

    This works for some tools (sorry to hear it doesn't for yours). This may not appear as null but will when you perform a query.

    0 讨论(0)
  • 2020-12-18 18:15
    Shift + Delete 
    

    work well in MySql Workbench 8

    0 讨论(0)
  • 2020-12-18 18:19

    In MySQL Query Browser, right click on the cell and select 'Clear field content' while the focus is in another cell.

    In MySQL Workbench, right click on the cell and select 'Set Field to NULL'.

    0 讨论(0)
提交回复
热议问题