Extracted from the perl cookbook

use DBI;

$dbh = DBI->connect('DBI:driver:database', 'username', 'auth',
            { RaiseError => 1, AutoCommit => 1});
$dbh->do($SQL);
$sth = $dbh->prepare($SQL);
$sth->execute();
while (@row = $sth->fetchrow_array) {
    # ...
}
$sth->finish();
$dbh->disconnect();

Concerning this code i have some questions ( i thinks it is very badly 
documented in the man pages)

-what does '->' stand for ?
- what does prepare do ?
- is there a _GOOD_ documentation about this ? I just want some sample code 
how to make some selects that return multiple data, and than see how the 
multiple rows are handled with ...

-- 
<======================>
     real men do it in perl ;)

         De Brauwer Elie 
       [EMAIL PROTECTED]
<======================>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to