Skip to content
Advertisement

Python3: Can’t write to text file with obtained data from SQL table

I think I am stucked on an easy job as a beginner but have to ask this question. My objective is to create another list from data obtained from a SQL Table. This list will be created in acocrdance with the input data by user.

The SQL table has no problem, but I couldn’t write on a txt file despite not receiving an error message. Where is the problem?

Advertisement

Answer

You could use pandas to write it to a csv file

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement