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

What is sqlcommand?

570


Why truncate is faster than delete?

571


What will you get by the cursor attribute sql%rowcount?

560


What are the two types of exceptions.

647


What does t sql mean?

540






Write the command to remove all players named sachin from the players table.

750


How is a process of pl/sql compiled?

612


How do I run a script in sql developer?

506


What is the requirement of self-join?

556


Is join and inner join the same?

553


What is the purpose of a secondary key?

521


Is it important to partition hard disk?

541


How many types of privileges are available in sql?

746


What are analytical functions in sql?

560


What is schema in sql example?

608