After executing the following script:
alter table test_table
add (test1 varchar2(1 char),
test2 varchar2(1 char) default 'T' not null);
I got interesting results... both columns are filled with 'T'. Default value is correctly added to "test2" column. "test1" column correctly has no default value.
Also, executing this script:
alter table test_table
add (test1 varchar2(1 char),
test2 varchar2(1 char),
test3 varchar2(1 char) default 'T' not null);
resulting in "test1" and "test3" columns filled with 'T'.
Could anyone explain to me why this is happening?
I'm using SQLDeveloper to execute scripts.