MySQL Forums
Forum List  »  Connector/Python

Re: datetime insert error
Posted by: Peter Brawley
Date: September 13, 2018 09:37AM

> INSERT INTO visits ( personId, visitDt ) VALUES ( 12345, 2010-01-01 12:23:34 );

Date/Time literals need to be quoted, '2010-01-01 12:23:34'.

Options: ReplyQuote


Subject
Written By
Posted
September 12, 2018 03:11AM
September 13, 2018 08:44AM
Re: datetime insert error
September 13, 2018 09:37AM
September 17, 2018 03:16AM


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.