Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: SQL and Placeholders

by pfaut (Priest)
on Mar 15, 2003 at 23:09 UTC ( #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
Node Status?
node history
Node Type: note [id://243364]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2021-06-25 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (136 votes). Check out past polls.

    Notices?