Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Sequences, last_insert_id, SQLite, and Oracle

by etcshadow (Priest)
on Jun 14, 2005 at 20:41 UTC ( [id://466693]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sql = "insert into foo (name,value) values (?,?) returning id into
    + ?";
    my $sth = $dbh->prepare($sql);
    ...
    $sth->bind_param_inout(2, \$id, 1024); # this is a reference that gets
    + written to!
    $sth->execute;
    print $id; # or whatever... $id has been written into by the execute
    
  2. or download this
    ------------
    :Wq
    Not an editor command: Wq
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found