how to add filename and date when importing data from csv to postgres DB using python – Postgresql
I need to update the row with the CSV filename and the time data was inserted into the database. I can use the below code to insert data from CSV into the database: with open('my.csv', 'r') as f: next(f) cur.copy_from(f,…