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


Please Help Members By Posting Answers For Below Questions

How do I save a sql query?

731


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

798


What are triggers in sql?

749


What is the sql*loader? : aql loader

779


What are the most important ddl statements in sql?

749






What does the file extension accdb stand for?

707


What is the difference between in and between in sql?

773


how to get @@error and @@rowcount at the same time? : Sql dba

739


How do I view output in sql developer?

806


What is clause?

793


What is left inner join in sql?

724


Define implicit and explicit cursors.

811


How many row comparison operators are used while working with a subquery?

754


What is rownum in sql?

762


What is primary and foreign key?

804