Quote:
|
Originally Posted by stolze
Are there any guarantees that xxemp won't be changed by the DBMS? At least I wouldn't rely on that behavior - it could just result in the strangest problems.
|
Indeed -- a well-known situation is an SQLCODE -811 which you receive when more than one row satisfies your request, but you used a "SELECT .. INTO .."
In this case, typically, the *second* row's data will be returned.
But as Knut Stolze correctly mentioned, no guarantees here!
So, in any case, one *must* first check the SQLCODE and only use the returned data when SQLCODE=0.