50 likes | 173 Views
Altering Tables. Adding a Column: Syntax. ALTER TABLE table ADD ( column datatype , column datatype , ...);. Adding a Column: Example. ALTER TABLE s_region ADD (comments VARCHAR2(255)); Table altered. Modifying a Column: Syntax. ALTER TABLE table MODIFY ( column datatype ,
E N D
Adding a Column: Syntax ALTER TABLE table ADD (column datatype , column datatype , ...);
Adding a Column: Example ALTER TABLE s_region ADD (comments VARCHAR2(255)); Table altered.
Modifying a Column: Syntax ALTER TABLE table MODIFY (column datatype, column datatype, ...);
ALTER TABLE s_dept DROP name; Table altered.