MySQL: how to do row-level security (like Oracle’s Virtual Private Database)?

Mysql doesn’t natively support row level security on tables. However, you can sort of implement it with views. So, just create a view on your table that exposes only the rows you want a given client to see. Then, only provide that client access to those views, and not the underlying tables.

See http://www.sqlmaestro.com/resources/all/row_level_security_mysql/

Leave a Comment