Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Introduction to databases in perl?

by Marshall (Canon)
on Dec 29, 2010 at 19:33 UTC ( #879681=note: print w/replies, xml ) Need Help??

in reply to Introduction to databases in perl?

I have a copy of "Programming the Perl DBI" and its certainly still relevant. You don't say whether or not you have experience with SQL, but you will quickly need to tangle with it. I recommend "Learning SQL" by Alan Beaulieu. This book starts from ground zero and uses MySQL for the examples using the mySQL command tool.

Update: RE: moving from "flat files" to DB... The DBD-CSV module is a pretty good step to using SQL with the Perl DBI while accessing the CSV flat file format that we both love and hate. CSV is loved because of its seeming simplicity and hated because of the tricky details (like commas within quotes: "some text, that is one thing but has a comma"). Get the basics of SQL. That knowledge translates very directly into DBI syntax. But since the .CSV format is text, it is very easy to see what your DBI SQL statements actually did to the DB.

BTW,Some of the DB's that I use export their "CSV" data using the pipe "|" instead of a comma ",". Excel can understand that format. So "CSV", "Comma Separated Value" can use a different field separator than ",". Keep that in mind when generating CSV files.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://879681]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2021-10-17 18:40 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (72 votes). Check out past polls.