I have the payouts table to whom I set the default as 0.000 for my total_tips column (extract from my table schema):
total_tips | decimal(12, 4) | YES | | 0.0000 | <- Default set as '0.0000'
But now, can anyone explain why I have still NULL values inside my table:
mysql> select total_tips from payouts where id = 4157;
+------------+
| total_tips |
+------------+
| NULL |
+------------+
1 row in set (0.00 sec)
Before that I ran a ALTER command which look like this (to set the default value):
mysql> ALTER TABLE payouts change total_tips total_tips decimal(12,4) default 0 ;