MySQL Forums
Forum List  »  Connector/Python

Re: datetime insert error
Posted by: Dillon Dillon
Date: September 17, 2018 03:16AM

I tried quoted, but failed.

Finaly, I use this code to do it:'%Y-%m-%d %H:%M:%S')
insert_sql="INSERT INTO master_check_data (master_time) VALUES ( '%s')" % (now_time)

Options: ReplyQuote

Written By
September 12, 2018 03:11AM
September 13, 2018 08:44AM
September 13, 2018 09:37AM
Re: datetime insert error
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.