Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
from .txt to database
#1
I have a .txt file (the content are from one data type say it is numerical) and I want to open this file using Python then read its content and then put its content in MySQL database is this possible and how?
Reply
#2
Reading and writting files
https://dev.mysql.com/doc/connector-python/en/
Reply
#3
I think you can read the .txt file first, parse all content to data in memory, and finally write it to MySQL database.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020