Searched, but didn't find what i needed.. i'm sure tho it has to have been asked.. anyways..
I have an UPDATE query that runs. I need to know how many records it did if possible.
It looks like with ADO, that execsql has a return value.
execsql result count?
Hello,
To get the number of affected rows you can use the RowsAffected property like:
To get the number of affected rows you can use the RowsAffected property like:
Code: Select all
OraQuery1.SQL.Text := 'UPDATE T SET A = ''update'' WHERE B > 1';
OraQuery1.Execute;
ShowMessage('Affected Rows: '+IntToStr(OraQuery1.RowsAffected));