Category Archives: Perl

Accessing SQL in Perl

This is a perl script that uses DBI to open an SQL database, read all the lines of a table, and print them out in an HTML page. This script assumes you’ve got a table in your database called people_table, and that you’ve got at least two fields, one called firstname and one called lastname.Everything I know about accessing SQP through perl (which isn’t much) I learned from Chris Sung’s notes, in about half an hour.
Continue reading

Posted in Perl | Comments Off on Accessing SQL in Perl