I have the strangest problem – when i run:
SELECT * FROM `words` WHERE `translation` = ''
i get: Showing rows 0 - 29 (6,925 total, Query took 0.0008 sec)
but when I run:
UPDATE `words` SET `translation`= NULL WHERE `translation`= ''
I get: 0 row(s) affected. ( Query took 0.2200 sec )
why doesn’t it want to udpate the rows? It is the same WHERE clause.
Ok, try this:
and secondly; maybe the column definition is not allowing NULL values? check the table design.