grant_privilege
Assigns database privileges to specific users for tables, schemas, or databases. Specify permission type and object scope to control user access.
Instructions
授予权限。privilege 示例:SELECT ON TABLE t、ALL PRIVILEGES ON DATABASE d、USAGE ON SCHEMA s
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grantee | Yes | 被授权的用户名 | |
| privilege | Yes | 权限与对象,如 ALL ON SCHEMA public |