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

How to select some rows from a table in oracle?

596


How to get maxsal , minsal, ename department wise in single query

1013


how to clone 9i Database on to 10g Database.

1822


When do I need to use a semicolon vs a slash in oracle sql?

590


How data locks are respected in oracle?

571






Is a rollback possible to any savepoint?

556


How to create a new tablespace in oracle?

558


What is the dynamic sql in oracle?

593


How to save query output to a local file?

556


What is hot backup and logical backup?

605


What is the difference between count (*), count (expression), count (distinct expression)?

558


What is memory advisor in Oracle?

629


Can multiple columns be used in group by in oracle?

542


What is a user account in oracle?

625


Explain the use of grant option in exp command.

586