I want to use one statement for create and alter both.
I use CREATE TABLE
if the object doesn't exist, and if object does exist, I use ALTER TABLE
. How to do that on condition for database objects (stored procedures, views, tables, schemas, custom types and etc.)
Like for tables
MODIFED
CREATE TABLE MyTable *****
ALTER TABLE MyTable *****
Above are two different statements, if MyTable Exists CREATE raise error similar if does not exsits ALTER raise error so am trying to resolve this error by one statement like "oracle create replace" and oracle do not gives error and self Create/replace.
is there any sql command syntax ?