views:

764

answers:

3

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 update it to ''. Typing "NULL" makes it try to update to 'NULL' (a string).

I know I could just write a query to do it, but that defeats the entire purpose of the tool, no?

A: 

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

Phil Jenkins
thanks for the tip, but that didn't work.
nickf
+3  A: 

Right click on the cell and select 'Clear field content'

Jonas Kongslund
that's it! cheers.
nickf
A: 

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.

Klathzazt
in MySQL at least, an empty string is different to NULL. Selecting and deleting the column contents sets it to be an empty string (which doesn't work at all if your column is numerical)
nickf