Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> How to conditionally copy and then create it using SQL scripts
In SQL server, the following SQL statements can be used to create a
table if it is not existed.
IF EXISTS (SELECT * FROM sysobjects
WHERE name = 'BusinessDocIdGenerator' AND type = 'U') DROP TABLE BusinessDocIdGenerator CREATE TABLE BusinessDocIdGenerator ( NumericGeneratorId int NULL, .....
How can I do this in Oracle? Oracle doens't allow "if" appears in sqlplus. Received on Wed Oct 10 2001 - 03:42:09 CDT
![]() |
![]() |