wtite down triggr not any entry on Sunday
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / rajdeep
create or replace trigger <trigger_name> before insert on <table_name>
begin
if (sysdate,'day') in 'sunday'
then
raise_application_error(-20500,'cannot insert values on sunday');
end if;
end;
Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between delete and truncate statement in sql?
Explain aggregate functions are available there in sql?
What are the different types of database management systems?
Why do we use partitions in sql?
What is break?
What is PL/SQL Records?
Can procedure in a package be overloaded?
What is meant by Join? What are the different types of Joins available? Explain.
define sql delete statement ? : Sql dba
What is insert command in sql?
----> There is a table T with two columns C1 and C2. The data is as below: C1 C2 1 4 2 5 3 6
What do you mean by rowid?