In my table i have 4 columns with 100 records
but in that 4 columns one column contains all NULL values
so can i add NOT NULL CONSTRAINT on that column......... ok
if it is not possible, can i add NOT NULL CONSTRAINT from
101 Record Onwards?

Answer Posted / sudipta santra

Yes, Krupananda, U r very right..I am explainning the trigger:

Create or replace trigger bri_tab_101_rec
before insert on table1
for each row

declare
usr_ins_excep exception;
begin
if :new.column4 is null then
raise usr_ins_exception;
end if;
exception
when usr_ins_excep
<< do exception code>>
rollback;
end;

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oracle datasource?

546


Explain the use of log option in exp command.

533


What is translate in oracle?

615


What are the different editions of oracle?

589


How to start a new transaction in oracle?

586






What the is the diff between local index and global index. give some example.

1131


I just want to maintain data like an employee can belongs to 3 or more departments . We can resolve this by using composite key but it avoids normalization rules. So Can anyone tell me how can I maintain data.

1694


What is difference between cartesian join and cross join?

582


Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?

549


How do I start tns listener?

538


How to apply filtering criteria at group level in oracle?

577


What is the recommended interval at which to run statspack snapshots, and why?

2430


What is the difference between view and materialized view in Oracle?

603


What is a package ? What are the advantages of package ?

597


What is a directory object?

585