Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: SQL and Placeholders

by pfaut (Priest)
on Mar 15, 2003 at 23:09 UTC ( [id://243364]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use DBI qw(:sql_types);
    my $query="SELECT * FROM $table WHERE (ukey = ?)";
    my $sth=$dbh->prepare($query);
    $sth->bind_param(1, $ukey, SQL_VARCHAR);
    $sth->execute();
    
  2. or download this
    ---
    print map { my ($m)=1<<hex($_)&11?' ':'';
    $m.=substr('AHJPacehklnorstu',hex($_),1) }
    split //,'2fde0abe76c36c914586c';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found