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 the difference between view and stored procedure?
What are the features of pl sql?
What is #table in sql?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
how to increment dates by 1 in mysql? : Sql dba
What is the use of double ampersand (&&) in sql queries? Give an example
What is the difference between local variables and global variables?
How many aggregate functions are available there in sql?
What is coalesce in sql?
Is null operator in sql?
What does fetching a cursor do?
List different type of expressions with the example.
What is percent sign in sql?
How do I view a procedure in sql?
Why do we need pl sql?