Limit user in sql plus to a single record in a table.

Posted by BFK on Stack Overflow See other posts from Stack Overflow or by BFK
Published on 2011-03-20T16:09:14Z Indexed on 2011/03/20 16:09 UTC
Read the original article Hit count: 188

Filed under:
|
|
|
|

I have one employee table...this table has 5 coloumns (empname, empgsm, empsal, empaddr, empdep)...it has 10 records. i've created 10 users equivelent to the empnames coloumn in the table. When a user logs in with his empname aka username & password, he will be able to see only his record from the table.

eg.Smith is an employee, a user called smith was created. when this user is in session, and types "Select * from Employee_table" he only gets the record that belongs to him, where empname is smith.

how do i do this using privileges? thanks in advance

© Stack Overflow or respective owner

Related posts about sql

Related posts about table