Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: DBI Question

by starX (Chaplain)
on Jun 13, 2008 at 19:44 UTC ( [id://691998]=note: print w/replies, xml ) Need Help??


in reply to DBI Question

To address the issue of multiple queries, you can use an open database handle to prepare a query into a statement handle, and then execute it later. i.e.
# code that connects to your database here my $first_query = $dbh->prepare('SELECT * FROM myTable'); my $second_query = $dbh->prepare('UPDATE myTable SET myField = ?'); $first_query->execute(); $second_query->bind_param(1, 'some string'); $second_query->execute(); # etc.
If you want some more specific help than that, please give us some code to look at. If you need more general help about how to use the DBI, you might want to try here or here.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-24 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found