alter column datatype in oracle code example

Example 1: alter table oracle

ALTER TABLE tablename MODIFY columnname varchar2(100)

Example 2: sql alter column size

ALTER TABLE table_name
ALTER COLUMN column_name datatype;

Example 3: add column table pl sql

ALTER TABLE table_name
  ADD column_name column_definition;

Example 4: alter table modify column

-- ORACLE 18c
ALTER TABLE table_name 
MODIFY column_name datatype;

-- Example
ALTER TABLE product
MODIFY description VARCHAR2(500 char);

Example 5: orcale sql change column type

ALTER TABLE table_name 
MODIFY column_name action;

Tags:

Sql Example