Insert TIMESTAMP with milliseconds in Oracle with cx_Oracle and Python 3.6
问题 I need to insert a timestamp with milliseconds in an Oracle table with Python 3.6 and cx_Oracle 6.4.1. The insert is done okay but I am losing the milliseconds on the way. The timestamp is passed as a datetime object. Any ideas how I could keep the milliseconds without making a to_timestamp() in the SQL itself? I would like to keep passing a datetime in the SQL transaction. I use executemany() as the idea is to insert multiple records at once. import cx_Oracle import datetime conf = {