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 -> Oracle "IF" Question

Oracle "IF" Question

From: Steven McAllister <smcallister_at_softblox.com>
Date: Mon, 02 Aug 1999 16:41:55 GMT
Message-ID: <37A5CA75.D9DFC5AB@softblox.com>


Hello. I am new to SQL and Oracle, and I have a script that I'm trying to run on an Oracle database. However, the following line fails; the interpreter claims that it is an invalid SQL statement:

IF NOT EXISTS (SELECT * FROM sys.DBA_USERS WHERE username = 'Admin') CREATE USER Admin IDENTIFIED BY password

Does any have any ideas what I am doing wrong?

Thanks,
Steve Received on Mon Aug 02 1999 - 11:41:55 CDT

Original text of this message

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