Re: datetime insert error
I tried quoted, but failed.
Finaly, I use this code to do it:
now_time=datetime.now().strftime('%Y-%m-%d %H:%M:%S')
insert_sql="INSERT INTO master_check_data (master_time) VALUES ( '%s')" % (now_time)
c2_master.execute(insert_sql)
Subject
Written By
Posted
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.