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 |
how can stop the sequence with mention the max value and with out mention the max value
Write a sql to print only character form the below string. @So&*CIE%$TE@GEN!@RAL
what is a record in a database ? : Sql dba
Is t sql a programming language?
What are the rules to be applied to nulls whilst doing comparisons?
What are the types of triggers in sql?
What is a stored procedure in sql with example?
Which one is better sql or oracle?
What is equi join in sql?
What is data types in sql?
what is the difference between cluster and non cluster index? : Sql dba
What is the use of stored procedures?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)