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
What are the different types of triggers?
what is myisam? : Sql dba
how to run 'mysql' commands from a batch file? : Sql dba
How do you create an update query?
What is the difference between cross join and natural join?
Is a view faster than a stored procedure?
Does view contain data?
Which sql statement is used to delete data from a database?
which types of join is used in sql widely? : Sql dba
What are the different types of a subquery?
define data blocks ? : Sql dba
what is the difference difference between procedure and packages
How is use pl and sql?
What do you mean by query optimization?
How do you modify a column in sql?