How many records did UPDATE update? [message #117605] |
Thu, 28 April 2005 09:04 |
TonyHoyt
Messages: 5 Registered: April 2005
|
Junior Member |
|
|
Their are times when I want to know just how many records my UPDATE sql command updated. Primarly when I want to know if it updated 0 records which tells me that the record didn't exist in the first place and I should flag an error. Right now, I go thru and try to do a SELECT then UPDATE. That seems like an extra operation too many in most cases.
Note, I'm using OCI for this project. So we're talking c here, not C++.
Tony
|
|
|
|