Answer Posted / debasish sinha
create or replace trigger trg_sun
before insert on <table name>
begin
if rtrim(to_char(sysdate,'day'))=rtrim('sunday') then
raise_application_error(-20345,'no transaction in sunday');
end if;
end trg_sun;
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Define select, insert, create, delete, update, drop keywords
Difference between truncate, delete and drop commands?
Is nosql relational?
What are the different ways to optimize a sql query?
Why do you partition data?
what is oltp (online transaction processing)? : Sql dba
What is cursor explain with example?
How many postgresql users are there, worldwide?
How to display the records between two range in Oracle SQL Plus?
Is sql a oracle?
What are sql constraints?
Is join and inner join the same?
What does <> sql mean?
How do you concatenate in sql?
What are reports usually used for?