I have a database with the column: clicks int(11) DEFAULT NULL.
If i give this column a default value of NULL the increment of:
UPDATE table SET clicks = clicks + 1 WHERE id=:id");
is not working, but when i change it to 0, manually, everything works.
How can i give the column the default value of 0.
By the way if i type 0 as default value in mysql workbench, the database still displays NULL, no matter what.
What am i missing?