Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> PLSQL: how to test if a table exists?

PLSQL: how to test if a table exists?

From: NoName <nobody_at_nowhere.com>
Date: Thu, 4 Dec 2003 10:39:54 +0100
Message-ID: <bqmunc$9nq$1@fata.cs.interbusiness.it>


Hello,

in a PLSQL script, I want to execute code only if a certain table exists. A pseudo-solution could be:

declare
  cursor c1 is select * from notable;
begin
  open c1;
  if c1%ISOPEN then

Obviously, the above code is not correct, first of all the script throws an execption if "notable" doesn't exist.
Any workaround?

Thank you Received on Thu Dec 04 2003 - 03:39:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US