I know that for a DATETIME column you can you CURRENT_TIMESTAMP but what about a DATE column? I don't need hours, minutes and seconds and while trying to set CURRENT_TIMSTAMP as default for I get an error. Thanks
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- Date with SimpleDateFormat in Java
A
date
ortime
type columns can be defined with adefault 0
but not acurdate()
orcurtime()
.As per documentation on Data Type Default Values:
Try this if it works