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
Is sqlexception checked or unchecked?
What is the importance of sqlcode and sqlerrm?
What is sql trigger example?
What is using in sql?
How many sql statements are used? Define them.
What is sql*loader?
Explain commit, rollback and savepoint.
Does sql*plus also have a pl/sql engine?
Can you rollback after commit?
Can we use commit inside a trigger?
How to add, remove, modify users using sql?
Will truncate release space?
How do you optimize a stored procedure query?
Is join and inner join the same?
what is bcp? When does it used? : Sql dba