I am trying to create a column where the data type is Date (not datetime) in table which gets records ingested on a daily basis by an sh script. However, in MySql Workbench I need to set a default value. A date function doesn't work. If I put null, it generates a date for historical data, but from the moment the column is created everytime the table gets new records the result will be NULL for that field. Anyone faced this before? Picture attached.
Asked
Active
Viewed 2,825 times
0
-
`2018/01/01` works. But... What value do you want? – Rick James May 03 '18 at 14:38