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
how to convert character strings to dates? : Sql dba
how to fetch alternate records from a table? : Sql dba
Explain what is table in a database?
What is snowflake sql?
Explain the difference in execution of triggers and stored procedures?
Explain the rollback statement?
How do you write an inner join query?
Why is there a need for sqlcode and sqlerrm variables?
how to load data files into tables with 'mysqlimport'? : Sql dba
what is the difference between a web-garden and a web-farm? : Sql dba
Can we use join in subquery?
What are sql procedures?
What is the use of function "module procedure" in pl/sql?
how is exception handling handled in mysql? : Sql dba
What is pl/sql table? Why it is used?