Answer Posted / rajdeep
create or replace trigger <trigger_name> before insert on <table_name>
begin
if (sysdate,'day') in 'sunday'
then
raise_application_error(-20500,'cannot insert values on sunday');
end if;
end;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
What are different types of triggers?
What is difference between stored procedures and application procedures?
How to revise and re-run the last sql command?
How many commands are there in sql?
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
Are subqueries faster than joins?
Can sql function call stored procedure?
Can we call procedure in select statement?
What do you mean by query optimization?
What is sqlerrd?
What do you understand by pl/sql cursors?
How would you reference column values before and after you have inserted and deleted triggers?
How to avoid using cursors?
How to avoid duplicate records in a query?