I want user to see only a particular row in sql table eg. if i have a table with 2 user if user 1 , writes
select * top1 from emp_id
the result must be 1st row.. but if 2nd user uses the same the answer should be 2nd row
I want user to see only a particular row in sql table eg. if i have a table with 2 user if user 1 , writes
select * top1 from emp_id
the result must be 1st row.. but if 2nd user uses the same the answer should be 2nd row
You can create a view on emp_id table as below and provide select grant on the view (instead of providing grant on the table) to the user.
create or replace view v_emp_id as select * from emp_id where user_name=user;
So the users can see their own data....