By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,369 Members | 966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,369 IT Pros & Developers. It's quick & easy.

connection to database

P: 51
We can connect to postgresql using the driver Pg using the data source name. The DBI->Connect is as under.

my $dbh=DBI->connect("dbi:Pg:dbname=postoffice","pavan","");
i used the above connect statement to connect to posgresql database.

We are using Ubuntu 6.06,which contains database.
So, here i enter say an employee table. So, how can i connect to that database like i did in postgresql ? could u tell me the datasource name,especially the driver to be used?

Jul 2 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.