INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PERL
DETAILS
Question: How do you connect to database in perl
Answer: There is DBI module.use DBI;my $dbh = DBI->connect('dbi:Oracle:orcl', 'username', 'password',)where username and password is yours. THis is exmaple for oracle database.
|
Question:
How do you connect to database in perl
Answer:
There is DBI module.use DBI;my $dbh = DBI->connect('dbi:Oracle:orcl', 'username', 'password',)where username and password is yours. THis is exmaple for oracle database. Source: CoolInterview.com
For Sybase:
use DBI; my $dbh = DBI->connect('dbi:Sybase:server=$SERVER', 'username', 'password') Source: CoolInterview.com
Answered by: Divya Gupta | Date: 5/28/2009
| Contact Divya Gupta
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|