16.20 - Examples of Using GRANT Role Form - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ SQL Data Control Language

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
created_date
March 2019
category
Programming Reference
featnum
B035-1149-162K

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;