Getting the number of rows return [message #113206] |
Thu, 31 March 2005 11:08 |
laplante
Messages: 3 Registered: March 2005
|
Junior Member |
|
|
If I do a select * from EMP;
How do I get the number of rows return if I DON'T use
scrollable cursor.
Here is my execute:
OCIStmtExecute(pl -> svchp, pl -> stmthp, pl -> errhp, (ub4) 0, (ub4) 0,
(CONST OCISnapshot *) NULL, (OCISnapshot *) NULL, OCI_DEFAULT)
Is there a way to know the number of rows return before doing the fetch?
In the same idea, is it possible to get the number or row affected after a delete or an update?
[Updated on: Thu, 31 March 2005 15:04] Report message to a moderator
|
|
|
|
|
Re: Getting the number of rows return [message #206531 is a reply to message #118028] |
Thu, 30 November 2006 08:04 |
arunpeswaran
Messages: 1 Registered: November 2006
|
Junior Member |
|
|
Hi :
Could you please tell me what the OCIParamGet() call should look like when trying to retreive the OCI_ATTR_ROW_COUNT attribute.
I'm not sure what the values should be for the last two parameters in the OCIParamGet() call.
Thanks
Arun
|
|
|