Re: convert function error for datetime column migrating from mssql
Posted by: Rick James
Date: October 07, 2011 06:57AM

There are several problems with that line...
* DATETIME cannot have a default value of the current date. (TIMESTAMP can.)
* GETDATE() --> NOW()
* CONVERT -- may not be needed
* CONVERT -- does not exist; see this for alternatives:
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html

Options: ReplyQuote


Subject
Written By
Posted
Re: convert function error for datetime column migrating from mssql
October 07, 2011 06:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.