I already found How to set to NULL a datetime with 0000-00-00 00:00:00 value? which is exactly my question - however, it does not work.
The colum 'bezahltDatum' is a date field which is nullable
The query
SELECT id,bezahltDatum FROM `officeBuch` WHERE bezahltDatum = '0000-00-00'
gives 25 results and is working.
However, when I try to convert '0000-00-00' to null with
UPDATE `officeBuch` SET bezahltDatum = null WHERE bezahltDatum = '0000-00-00'
Then I get an error message
#1292 - Incorrect date value: '0000-00-00' for column 'bezahltDatum' at row 1
Why is this not working and how can I fix it? I am using phpMyAdmin Version 4.7.2 and Mysql 5.7.18-0ubuntu0.16.04.1