I have two list:
run = ['2019-01-03', '2019-01-04', '2019-01-05']
curr = ['2019-01-04', '2019-01-05', '2019-01-06']
i want to insert dates into table vv_flag in columns run_date and curr_date respectively. like:
run_date curr_date
2019-01-03 2019-01-04
2019-01-04 2019-01-05
query = "select run_date, curr_date from cdedev.vv_flag where flag = 'N'"
ress = cur.execute(query)
print(ress)
result = cur.fetchall()
run = result['run_date']
curr = result['curr_date']