I’ve this query returning the new value by a bind variable:
update tab1 set counter=counter+1 where id = 7 returning counter into :bind_var;
but no idea how to to it in zend, any help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I take it you’re using the
Zend_Db_Adapter_Oracleadapter? AsZend_Db_Statement_Oracleusesoci_bind_by_name()internally, this can handle both IN and OUT parameters. For OUT parameters, you should always set the type.Basically, you can simply do this with your statement