I created a table called products
from a user called john
. I want a user called doe
to have permission to view that table and another user called lorem
to be able to delete, insert, select, and update in this table. How can I do that? What roles and privileges do I need to set?
PD: someone told me that I have to do this with a:
CREATE VIEW view_products
as
SELECT * FROM products;
Is this right?