Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Re: Use Placeholders. For SECURITY and (sometimes) for PERFORMANCE

by mpeppler (Vicar)
on Nov 15, 2003 at 01:12 UTC ( #307275=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    select count(*), event_status from text_events group by event_status;
                 event_status
    ...
              26            0
         2352103            2
           81921            3
    
  2. or download this
    declare @status int
    select @status = 0
    select * from text_events where status = @status
    
  3. or download this
    my $sth = $dbh->prepare("select * from payment_db..text_events where e
    +vent_status = ?");
    $sth->execute(1);
    fetch_all($sth);
    $sth->execute(0);
    fetch_all($sth);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2023-02-02 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (19 votes). Check out past polls.

    Notices?