Python Forum
Python Forum
>
General
>
News and Discussions
> from .txt to database
Full Version:
from .txt to database
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
myp1lteandroid
Mar-28-2019, 10:26 PM
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?
Yoriz
Mar-28-2019, 10:36 PM
Reading and writting files
https://dev.mysql.com/doc/connector-python/en/
Defonds
Apr-09-2019, 06:17 AM
I think you can read the .txt file first, parse all content to data in memory, and finally write it to MySQL database.
Python Forum
>
General
>
News and Discussions
> from .txt to database