| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: to avoid errors while dropping not existing objects
fireball schreef:
> how to test whether table exists before I drop it?
>
>
> /newbie
select * from <table_name>;
If it fails - it's not there (or you cannot see it).
If it succeeds, drop it.
What's the difference with:
drop table <table_name>;?
If it does not exist - error. If it does: OK.
Just stick the the drop table. Ignore any messages. Received on Tue Oct 10 2006 - 03:21:29 CDT
![]() |
![]() |