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
Can unique keys be null?
What do you understand by pl/sql packages?
Why should I use postgresql?
What is the example of procedure?
what is top in tsql? : Transact sql
how to decrement dates by 1 in mysql? : Sql dba
What are pl sql procedures?
What does desc stand for?
what are all the different normalizations? : Sql dba
Does google use sql?
what is the functionality of the function htmlentities? : Sql dba
how to get @@error and @@rowcount at the same time? : Sql dba
What is materialized view in sql?
What are all types of user defined functions?
Is sql procedural language?