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 |
What is pl sql script?
how can we submit a form without a submit button? : Sql dba
What are character functions?
what is the need of the cursor attribute notfound..(because using found attribute we can complete the task......found + negation operator = not found )
What does seeding a database mean?
Name the different types of indexes in sql and define them.
What is the difference between clustered and non-clustered index in sql?
How can we optimize a sql query?
What are the types pl/sql code blocks?
What is sap sql?
How to run sql*plus commands in sql developer?
How do I count rows in sql?
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)