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 are the different types of constraints?
What is a full join sql?
How to combine two stored procedures in sql?
Is it possible to create startup or shutdown trigger for on-schema?
what are the properties and different types of sub-queries? : Sql dba
What is the purpose of cursors in pl/sql?
Define SQL and state the differences between SQL and other conventional programming Languages?
Can we use rowid as primary key?
how do you control the max size of a heap table? : Sql dba
Explain correlated query work?
What packages(if any) has oracle provided for use by developers?
What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql
what is a table in a database ? : Sql dba
How do I debug a stored procedure?
What is a temporal table?