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
Is json a nosql?
how do you know if your mysql server is alive? : Sql dba
Can a view be mutating? If yes, then how?
What is pl sql code?
What is set serveroutput on?
What is the use of double ampersand (&&) in sql queries? Give an example
Can we join 3 tables in sql?
What is the maximum number of rows in sql table?
what is a scheduled jobs or what is a scheduled tasks? : Sql dba
What are the qualities of 2nf?
What is trigger with example?
Explian rowid, rownum?
What is varchar used for?
what is the different between now() and current_date()? : Sql dba
What is difference between sql and mysql?