# Assumes DBI RaiseError is set ... my $sth = $dbh->prepare ("SELECT ID from $tbl where ID=?"); for my $id (1..10_000){ $sth->execute ($id); next if $sth->fetchrow_arrayref; # This ID ($id) was absent # Generate web page here... }
"I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
-- Dr. Cox, Scrubs
In reply to Re: Help with database query
by NetWallah
in thread Help with database query
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |