develooper Front page | perl.beginners | Postings from March 2002

moving data from text file to db

Thread Next
tom poe
March 5, 2002 20:50
moving data from text file to db
Message ID:
Hi:  I have a script that connects to my PostgreSQL7.0.3 OK.

Now, I also have text files that contain:
column_name: data

I want to open the database, open the file, read each line that has a 
column_name followed by a colon and space, then the data, and move it
to the table in PostgreSQL.  Has anyone come across an article that looks at 
this topic specifically?  

Thanks, Tom

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About