How do you determine in oracle whether a table exists?
On a script file, I wanted to delete a table only if it exists.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Oracle has an
all_tablestable, you could query that to see.Maybe something like this:
I know I commented earlier on someone else’s post that I didn’t like using
execute immediatefor this, but I’d forgotten that it’s the only way to perform adrop tablefrom PL/SQL.