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 we use distinct and group by together?
how to convert numeric values to character strings? : Sql dba
How does sql developer connect to oracle database?
Difference between global and parameter variables?
What do you understand by pl/sql cursors?
Is subquery faster than join?
Can we use ddl statements in stored procedure?
Why function is used in sql?
How do I view a procedure in sql?
How do I order columns in sql?
How do you update a table in sql?
what is the difference between primary key and unique key? : Sql dba
How many postgresql users are there, worldwide?
Is sql a oracle?
What is sap sql?