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 are the authentication modes in sql server? How can it be changed? : Sql dba

699


Explain how to use transactions efficiently : transact sql

524


What is view explain with example?

515


What is a composite primary key?

581


How do you write an inner join query?

505






What are the types of records?

526


What is the purpose of design view?

520


what is a record in a database ? : Sql dba

566


Why is sql*loader direct path so fast?

595


What is the difference between a primary key and a unique key?

554


what is cursor. write example of it. What are the attributes of cursor.

743


How to sort the rows in sql.

597


What is sqlservr exe?

474


What is the purpose of the primary key?

562


What is the difference between a primary key and a clustered index?

518