MySQL Forums
Forum List  »  Security

Row level security
Posted by: Martin King-Turner
Date: December 01, 2005 08:27AM

Is it possible to restrict access to rows in a table, based on data contained in the row?

Here's an example. I have a table which contains messages for individual users. To keep it simple, let's say I have just 2 columns - userid and message. I would like to setup the security so that when a particular user tries to access the table (even with a SELECT * query), they will be able to see *only* those rows where the value of the data in the userid column is equal to their MySQL login.

Any ideas on how to achieve this would be gratefully received.

Thanks,
Martin

Options: ReplyQuote


Subject
Views
Written By
Posted
Row level security
15492
December 01, 2005 08:27AM
6701
December 07, 2005 12:19AM
6357
March 25, 2006 11:43PM
5488
March 15, 2006 06:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.