![]() |
Oracle 10g - delete record that doesn't exist
Hello, everyone.
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 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. |
Quote:
Code:
delete a non-existent record from an existing database |
Quote:
|
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? |
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.
|
| All times are GMT +1. The time now is 07:04 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.