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
Mention what plvcmt and plvrb does in pl/sql?
Why do we use procedures in pl sql?
What are conditional predicates?
How does sql*loader handles newline characters in a record? : aql loader
What is the use of <> sql?
Does varchar need length?
Where is all the data on the internet stored?
Explain correlated query work?
What is the maximum database size for sql express?
what is the command line end user interface - mysql? : Sql dba
what is normalization? : Sql dba
Can a key be both primary and foreign?
What are the benefits of pl sql?
- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?