Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Help with database query

by NetWallah (Canon)
on Mar 15, 2013 at 02:37 UTC ( [id://1023601]=note: print w/replies, xml ) Need Help??


in reply to Help with database query

Untested Pseudocode.. (Assuming you use DBI )
# 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1023601]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found