In Oracle 10g, if an attempt is made to delete a record from the database that doesn't exist, will it throw an error?
__________________ ^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
If it throws an error, then it's not conformant with ANSI SQL, at all.
ANSI says a DELETE that affects zero records is never an error.
I would be truly surprised if Oracle went against ANSI on something this fundamental.
*********
If you are only looking to see how many records were deleted, most DB interfaces will give you that information.
Thanks, Pedant. I didn't think it would, but I've got a weird error when trying to delete a record. Trying to track down what is causing it, and thought that _maybe_ Oracle was erroring if the record did not exist.
__________________ ^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
Oracle does allow you to DELETE from views, but then it puts restrictions on that (which I think you'd need to be an Oracle guru to understand...some are really weird!).
Is it possible that is what is happening here? That you think you are deleting from a table but it's really from a VIEW of a table?
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
I don't know about VIEW, but I do know that whenever there's that kind of an issue, it's usually with SYNONYMS, not VIEWS.
__________________ ^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".