Examples Using GRANT (Role Form)| SQL Data Control Language | Teradata Vantage - 17.05 - Examples of Using GRANT Role Form - Teradata Database

Teradata Vantageā„¢ - SQL Data Control Language

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
17.05
created_date
June 2020
category
Programming Reference
featnum
B035-1149-170K

The following statements create roles called services and sales:

CREATE ROLE services;
CREATE ROLE sales;

To make sales a nested role of services, use the following GRANT statement:

GRANT sales TO services;

To grant the sales role to user marks, and give marks the privilege to add other members to sales, use the following GRANT statement:

GRANT sales TO marks WITH ADMIN OPTION;