How to set default date time as system date time in mysql
        Posted  
        
            by Shantanu Gupta
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Shantanu Gupta
        
        
        
        Published on 2010-04-05T09:51:59Z
        Indexed on 
            2010/04/05
            10:03 UTC
        
        
        Read the original article
        Hit count: 312
        
mysql
I am trying to set my columns default date time to system datetime. It shows me an error
Invalid default value for 'InsertionDate'
alter table `vts`.`tblpickpoint` 
  add column `InsertionDate` 
      datetime DEFAULT 'Now()' NULL after `PickPointLatLong`
© Stack Overflow or respective owner