Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can we have exception part in trigger ?



Can we have exception part in trigger ? ..

Answer / kishore

yes........

create or replace trigger emp_biu
before insert or update on employee
referencing new as new old as old
for each row
begin
if nvl(:new.salary,0) >= 10000 then
raise_application_error (-20999,'Salary with
commissions should be less than 10000');
end if;
end;
/

Is This Answer Correct ?    15 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

how can stop the sequence with mention the max value and with out mention the max value

1 Answers   Zensar,


Write a sql to print only character form the below string. @So&*CIE%$TE@GEN!@RAL

1 Answers   Societe Generale,


what is a record in a database ? : Sql dba

0 Answers  


Is t sql a programming language?

0 Answers  


What are the rules to be applied to nulls whilst doing comparisons?

0 Answers  


What are the types of triggers in sql?

0 Answers  


What is a stored procedure in sql with example?

0 Answers  


Which one is better sql or oracle?

0 Answers  


What is equi join in sql?

0 Answers  


What is data types in sql?

0 Answers  


what is the difference between cluster and non cluster index? : Sql dba

0 Answers  


What is the use of stored procedures?

0 Answers  


Categories