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

Home -> Community -> Usenet -> c.d.o.server -> IF NOT EXISTS SELECT ...

IF NOT EXISTS SELECT ...

From: Armin S. Seidel LK/NKG <eraarm_at_hfera.ericsson.se>
Date: 1996/10/15
Message-ID: <53vsnr$7uf@newstoo.ericsson.se>#1/1

I would like to test the existence of rows as condition in a PL/SQL if-clause:

   IF NOT (EXISTS SELECT * FROM table WHERE col = value) THEN

      ...
   END IF; but Oracle complains about the syntax. I tried different variations with/without parentheses without success. Apparently, the EXISTS operator may only be used in subqueries. Can you help?

Received on Tue Oct 15 1996 - 00:00:00 CDT

Original text of this message

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