Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: named placeholders in DBI

by simonm (Vicar)
on Sep 22, 2003 at 21:25 UTC ( [id://293292]=note: print w/replies, xml ) Need Help??


in reply to Re: named placeholders in DBI
in thread named placeholders in DBI

This functionality is also available pre-rolled in DBIx::SQLEngine:
my ($sql, @params) = DBIx::SQLEngine->sql_insert( table => 'users', values => \%user_rec );

There's also a dbh wrapper method that allows you to prepare and execute the query in one go:

my $sqldbh = DBIx::SQLEngine->new( ... ); # same args as DBI->connect ... $sqldbh->do_insert( table => 'users', values => \%user_rec );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-25 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found