how to give permission to users that users can
update/insert/delete on a row of table on timeing 10am to
6pm only?
Answer Posted / kart
create or replace trigger trig_aone
before insert or update or delete on aone
for each row
begin
if to_char(sysdate,'HH24') not between (9) and (18) then
raise_application_error('-20011','u cant update in business
time');
end if;
end;
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is a sql instance vs database?
what is 'mysqladmin' in mysql? : Sql dba
what are numeric data types? : Sql dba
How much does sql cost?
What is faster join or subquery?
what are myisam tables? : Sql dba
How to display the records between two range in Oracle SQL Plus?
What are tables and fields?
what is recursive stored procedure? : Sql dba
what is index? : Sql dba
How do I pipe the output of one isql to another?
Can you load data into multiple tables at once? : aql loader
Does truncate table reset auto increment?
What is a mutating table and a constraining table?
What is the difference between the conventional and direct path loads? : aql loader