create table test (col1 number)
Table created.
alter table test modify col1 number default 99
Table altered.
alter table test add col2 number default 99
Table altered.
insert into test (col1)
values (1)
1 row(s) inserted.
insert into test (col1, col2)
values (2, null)
1 row(s) inserted.
select * from test
| COL1 | COL2 | 1 | 99 | 2 | - |
|---|
drop table test
Table dropped.