Add default Column as Boolean
hi,
I have been using oracle default column feature from sometime and I found it very useful as it avoid large backfill process.
here is the command to add not null column with default value.
alter table Owner.table_name add (Column_name Varchar (32) default 'Sales' not null);
Question:-
recently one Developer came and asked about adding default boolean column with default FALSE value, I couldn't able to find the proper sql for this.
below sql is throwing an error, anyone who can help me to figure out whats wrong here, will be big help.
alter table Owner.table_name add (isactive char(1) check (isactive in ('TRUE','FALSE') default 'FALSE' not null));
thanks