how to give permission to users that users can
update/insert/delete on a row of table on timeing 10am to
6pm only?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / hari
We have to create trigger
create trigger trg_name
before insert/delete/update on table
when sysdate between 10am to 6pm
begin
logic
end;
Is This Answer Correct ? | 13 Yes | 3 No |
Answer / pariksheet de
Grant Insert,Update,Delete
On Employees
To All
-----------------------------------------------
Create Trigger Upd_Employees
Before Insert,Update,Delete on Employees
For Each Row
Begin
if to_char(sysdate,'Dy') in
('Mon','Tues','Wed','Thrs','Fri','Sat','Sun') and to_char
(sysdate,'hr:mi') not between ('10:00') and ('6:00')
then raise_application_error(-
20145,'Insertion/Updation/Deletion can take place between
10:00 am and 6:00);
end if;
end;
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / cm
create one user in your windows o/s. Add this user into
your sql user in security.
This windows user provide the permission only 10am to 6pm.
Is This Answer Correct ? | 0 Yes | 9 No |
Why procedure is used in sql?
How many clustered indexes can you have?
what are date and time functions in mysql? : Sql dba
Difference between views and materialized views?
What are pl sql data types?
Is delete faster than truncate?
Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?
What is user defined functions?
Write a sql query to convert all character to uppercase after hypen.
What is program debugging?
what are all the different normalizations? : Sql dba
I Defined SP1, Sp2 (sp=StoreProcedures)In Package Specification but I Implemented Sp1, sp2, sp3, sp4, sp5 then What type of Error You will find????