Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> question on delete statement
Hi Fabio,
DELETE FROM table_name
WHERE some_condition;
I don't expect your example statement to actually be accepted in SQLPlus or anything else for that matter. To me it has a sytax error as you did not specify the tablename to delete from. I haven't tested it - as I suspect is the case with you.
Cheers,
Norman.
--
(Delete a Microsoft database name to reply - clue, mssql !)
-----Original Message-----
From: Fabio [mailto:nonce_at_nulla.it]
Posted At: Friday, June 20, 2003 9:04 AM
Posted To: server
Conversation: question on delete statement
Subject: question on delete statement
Hi
I'm pretty new on Oracle so I'm sorry if this question was posted
before.
How is the behaviour of the DB engine on a complex delete query (I'm
working
on 9i)?
If I had a query like
delete (select * from A join B on A.f1=B.f1) C where C.f3 = '???' and C.f4 = 0
which table (A or/and B) will be involved in the delete?
How could I know if I'm deleting records from A table or B table or both
?
Is there some syntax to specify the table I want delete records from?
Thanks in advance
Fabio
Received on Fri Jun 20 2003 - 10:00:15 CDT