Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: How to Connect to Oracle

Perl: How to Connect to Oracle

use DBI;
use strict;
# Create a connection to Oracle Database
my $db_connect = DBI->connect('dbi:Oracle:Test','scott','tiger');
my $Query="SELECT Name, LastName FROM users";
my $statement = $db_connect->prepare($Query);
	|| die "Unable to execute this query";
# Returns an array that corresponds to the fetched row
while (my @row=$statement->fetchrow_array)
   print "@row n";

Users who found this page were searching for:

  • python to read a binary file
  • perl script access to oracle database
  • how to reset read position python
  • java InternetAddress multi receivers
  • perl dbi oracle +bigdecimal
  • iterate over dictionary python

No comments yet.

Leave a Comment