Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: last_insert_id() in sybase

by boftx (Deacon)
on Jul 11, 2014 at 19:08 UTC ( [id://1093290]=note: print w/replies, xml ) Need Help??


in reply to last_insert_id() in sybase

Did you also do a $sth->execute after your prepare statement? A do combines both of those into one operation.

You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.

Replies are listed 'Best First'.
Re^2: last_insert_id() in sybase
by Shreyak (Novice) on Jul 12, 2014 at 03:59 UTC

    Yes i did $sth->execute(@bindValues) after preparing the statement at start of the database connection and executing with bind variables whenever required in code ,and then did $sth->finish() just before disconnecting database. Also i used different statement handlers for insert and update statement.

      Then all I can say at this point is what others have mentioned below, show us what you have that failed and what worked. :)

      You must always remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-23 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found