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
What plvcmt and plvrb does in pl/sql?
How do I write a sql query in pgadmin 4?
Explain the commit statement.
What is parameter substitution in sql?
What is memory optimized?
What is an exception in PL/SQL? What are the two types of exceptions?
Why we use pl sql?
Can we create a trigger on view?
what is the difference between blob and text? : Sql dba
How do you use collections in procedure to return the resultset?
what is isam? : Sql dba
How do I view a view in sql?
What is the use of & in pl sql?
What company owns postgresql?
what is a join? : Sql dba