I want to grant a user only to edit one column in my table. What command do I use here? I use the oracle 11g database. I alrdy know how I can grant only read or delete on the whole table but how do I do it for only one column or more? pls give an example.
相关问题
- NOT DISTINCT query in mySQL
- Flush single app django 1.9
- keeping one connection to DB or opening closing pe
- Mysql-installer showing error : Memoy could not be
- System.Data.OracleClient not working with 64 bit O
相关文章
- Connection pooling vs persist connection mysqli
- Speed up sqlFetch()
- How Do I Seed My Database in the setupBeforeClass
- I set a MySQL column to “NOT NULL” but still I can
- Where in Django can I run startup code that requir
- Google OAuth 2.0 User id datatype for MYSQL
- Restore deleted records in PostgreSQL
- SQLSTATE[HY000] [2002] Permission denied
For example, you want to grant update privilege on ename column only, then give the following statement (where xyz is the username)
Syntax:
EDIT: (for granting select privilege)
To grant select statement on emp table to XYZ and to make XYZ be able to further pass on this privilege you have to give WITH GRANT OPTION clause in GRANT statement like this.
Also, For example you want to grant update privilege on ename column only and insert privilege on empno and ename columns only, you can do this:
Based on this source:
Only
INSERT
,UPDATE
, andREFERENCES
privileges can be granted at the column level. When grantingINSERT
at the column level, you must include all the not null columns in the row.Here is an example: