Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Number of Affected Rows

Number of Affected Rows

From: Heidi K. Barg <heidi_at_stepforward.org>
Date: 1998/06/24
Message-ID: <6mrmom$40v$1@cleavage.canuck.com>#1/1

Is there a way to find out how many rows have been changed after an update; if you don't have the need for binding any DML statements or RETURNING clauses?

Example:
sqlText = "update abc set a = a + 5 where a < 4"

OCIStmtPrepare(stmthp, errhp, sqlText, strlen(sqlText), OCI_NTV_SYNTAX, OCI_DEFAULT);
OCIStmtExecute(svchp, stmthp, errhp, 1, 0, 0, 0, OCI_DEFAULT);
?OCIAttrGet(bindp2, OCI_HTYPE_BIND, &numberOfAffectedRows, sizeof(int),
???????, errhp);

thanks,

heidi (heidi_at_gestalt.com) Received on Wed Jun 24 1998 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US