Name
ALTER TABLE
Synopsis
ALTER TABLE [schema
.]table_name
{ [ADD (column
datatype
[DEFAULTexpression
] [column_constraint_clause
] )] [MODIFY (column
[datatype
] [DEFAULTexpression
] [column_constraint_clause
] }] [PCTFREEinteger
] [PCTUSEDinteger
] [INITRANSinteger
] [MAXTRANSinteger
] [LOGGING | NOLOGGING] [STORAGE ( [NEXTinteger
[K | M] ] [MAXEXTENTS {integer
| UNLIMITED} ] [PCTINCREASEinteger
] [FREELISTSinteger
] [FREELIST GROUPSinteger
] ] ) ] [DROP { PRIMARY KEY [CASCADE] | UNIQUE (column
[,column
...] [CASCADE] | CONSTRAINTconstraint_name
[CASCADE]} ] [ALLOCATE EXTENT ([DATAFILE 'filename
'] [SIZEinteger
[K | M] ]) ] [DEALLOCATE UNUSED [KEEPinteger
[K | M]] [CACHE | NOCACHE] [RENAME TOtable_name
] [PARALLEL ( {DEGREE {integer
| DEFAULT} | INSTANCES {integer
| DEFAULT} } ) ] [NOPARALLEL] [DROP PARTITIONpartition
] [TRUNCATE PARTITIONpartition
] [MODIFY PARTITIONpartition
[REBUILD] UNUSABLE LOCAL INDEXES] [ADD PARTITIONpartition
VALUES LESS THAN (valuelist
) [RENAME PARTITIONpartition
TOnewpartition
] [EXCHANGE PARTITIONpartition
WITH TABLEtable_name
[ {INCLUDING | EXCLUDING} INDEXES ] [ {WITH | WITHOUT} VALIDATION ] ] } [ENABLE { ALL TRIGGERS | UNIQUE (column
[,column
...] [CASCADE] | PRIMARY KEY [CASCADE] | CONSTRAINTconstraint_name
| }] [DISABLE { ALL TRIGGERS | UNIQUE (column
[,column
...] [CASCADE] | PRIMARY KEY [CASCADE] | CONSTRAINTconstraint_name
}] [ENABLE TABLE LOCK] [DISABLE TABLE LOCK]
Modifies the column characteristics of a table (table_name), the storage characteristics ...
Get Oracle Database Administration: The Essential Refe now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.