我有2个架构和3个通用用户来访问我的数据库中的数据
Schema : EMSMaster and EMSTransactional
Users : BN_USER, MBN_USER and SUPER_ADMIN
我的权限应该是
BN_USER - select on EMSMaster
select, insert and update on EMSTransactional
MBN_USER - select, insert, update on EMSMaster
select, insert, update and Delete on EMSTransactional
有没有办法在Schema上提供这种权限?请建议我实现这种权限的一些好方法。
答案 0 :(得分:1)
GRANT SELECT ON schema :: EMSMaster TO BN_USER
GRANT SELECT, INSERT, UPDATE ON schema :: EMSTransactional TO BN_USER
GRANT SELECT, INSERT, UPDATE ON schema :: EMSMaster TO MBN_USER
GRANT SELECT, INSERT, UPDATE, DELETE ON schema :: EMSTransactional TO MBN_USER