in reply to Handling conditions DBI in Oracle 8.1
Hope this helps :)my $sql = <<EOF; select count(*) ROWCOUNT from EMPLOYEE where employee_id = 1 EOF ; my $sth = $dbh->prepare($sql); $sth->execute; my $employee_count_row = $sth->fetchrow_hashref; $sth->finish; print "NO RECORDS FOUND" unless $auth_row->{'ROWCOUNT'} > 0; ...fire the second SQL if ROWCOUNT > 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Handling conditions DBI in Oracle 8.1
by data67 (Monk) on Jan 16, 2002 at 00:10 UTC | |
by runrig (Abbot) on Jan 16, 2002 at 00:22 UTC | |
by Rhose (Priest) on Jan 16, 2002 at 20:01 UTC | |
by data67 (Monk) on Jan 17, 2002 at 00:44 UTC |