You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print ("Exporting table data to files", asFileNames)
cur.execute ("{fn teradata_write_csv(" + asFileNames [0] + ")}select * from voltab order by 1 ; select * from voltab order by 1 desc ; select 123 as col1, 'abc' as col2")
try:
for sFileName in (asFileNames):
print ("Reading file", sFileName)
with open (sFileName, "rt", encoding="UTF8") as f:
[ print (row) for row in csv.reader (f) ]
finally:
[ os.remove (sFileName) for sFileName in asFileNames ]