The following examples add and remove a table-level constraint and a column from the existing base table.
The examples are based on the following table:
create table emp (
name char(10) not null not default,
salary decimal(10,2)
dept char(10),
age integer not null not default);
alter table emp add constraint
check_age check (age > 0);
alter table emp drop constraint check_age cascade;
alter table emp add column location char(10);
alter table emp drop column location restrict;
alter table emp alter column name char(32);
alter table emp alter column name nchar(32);
alter table emp alter column name varchar(32) not null with default;
alter table emp alter column name char(32) with null;
alter table emp alter column name nchar(32) not null not default collate unicode_case_insensitive;