adspace
Answer Posted / Hemant Pathak
Here's an example of an SQL trigger that enforces data integrity rules: CREATE TRIGGER ensure_salary_minimum AFTER INSERT ON employees FOR EACH ROW WHEN (NEW.salary < 30000) THEN RAISE_APPLICATION_ERROR(-20001, 'Salary must be at least $30,000'); This trigger enforces a minimum salary of $30,000 for new employees by raising an error if the inserted salary is less than that amount.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how many tables will create when we create table, what are they? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
Is primary key always clustered index?
define sql insert statement ? : Sql dba
Does group by remove duplicates?
how to start mysql server? : Sql dba
what are aggregate and scalar functions? : Sql dba
what are all the common sql function? : Sql dba
what is collation? : Sql dba
What is the current version of sql?
Is primary key clustered index?
what is sql server agent? : Sql dba
Do we need to rebuild index after truncate?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
How do I remove duplicates in two columns?