#!/usr/bin/perl -w use strict; use DBI; my $dbh = DBI->connect("DBI:mysql:fenonn:localhost","fenonn","password +"); $dbh->disconnect; my $sth = $dbh->prepare("SELECT data1 FROM table1"); $sth->execute() || die "Couldn't execute statement: $DBI::errstr; stop +ped"; my ( $data ) = $sth->fetchrow_array(); print $data;
In reply to Disconnecting from a Database by fenonn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |