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 -> A simple PL/SQL question...

A simple PL/SQL question...

From: Aiden Fung <aidenf_at_pacbell.net>
Date: Sat, 15 May 2004 00:55:31 GMT
Message-ID: <7Udpc.48609$wc.44748@newssvr29.news.prodigy.com>


Hi all,

I'm trying to port a SQL Sever application to Oracle. How do I write the following statement in PL/SQL?

IF EXISTS(SELECT 1 FROM table_x WHERE column_a = 'X')

    ... do stuff

The main purpose of the statement is to test if a record exists.

Thanks in advance,
Aiden Received on Fri May 14 2004 - 19:55:31 CDT

Original text of this message

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