Skip to content
Advertisement

Tag: privileges

How to revoke MySQL user privileges for one table?

When I have granted privileges to a user for some specific tables: How do I revoke the privileges for this user, just for table1? Answer Google is your friend! http://dev.mysql.com/doc/refman/5.7/en/revoke.html Syntax: To further explain this answer – I’ll teach how to fish (rather than just give you a fish). The MySQL documentation can look confusing at first – the “syntax”

How to know if a user has a privilege on Object?

I would like to know if a user has a privilege on an object or not. I’m working on SQL Developer. When I query manually the table DBA_TAB_PRIVS, I get all the information needed. However, I need this information to be used in some triggers and functions. So, I’m writing PL/SQL function that will return 1 if a role has

Advertisement