I want to export the MS Access table I'm using into a csv/xlsx file. I have tried this:
def write_to_csv1(result):
with open ('jur.csv', 'a', newline='') as f:
w = csv.writer(f, dialect='excel')
for record in result:
w.writerow(record)
But this makes all the row to be placed in a same column. What I need it to do is separate the row into columns to be just like the Acess table.