c = cur.execute('select * from HChange')
with open('c:/tmp/bse/Output.csv', 'w', newline='') as file:
    for i in c:
        a = c.fetchone()
csv.writer(file).writerow(a)
Sqlite3 / python - Export from sqlite to csv text file does not exceed 20k