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

SQL Data Control Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
sqd1591723147563.ditamap
dita:ditavalPath
sqd1591723147563.ditaval
dita:id
B035-1149
lifecycle
previous
Product Category
Teradata® Vantage™ NewSQLEngine

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;