Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: DBI Question

by starX (Chaplain)
on Jun 13, 2008 at 19:44 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-10-04 19:47 GMT
Find Nodes?
    Voting Booth?

    No recent polls found