0% found this document useful (0 votes)
78 views2 pages

Teradata SQL Quick Reference Guide: Simplicity by Design, Second Edition

This document provides an overview of the Data Control Language (DCL) in Teradata SQL. It describes the main DCL statements - GRANT, REVOKE, and GIVE which control user access and ownership. Privileges define what users can do with database objects and include permissions for CREATE, DROP, SELECT, UPDATE etc. The document lists the database objects these privileges can be applied to, such as DATABASE, TABLE, VIEW, and more.

Uploaded by

dharmendard
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Teradata SQL Quick Reference Guide: Simplicity by Design, Second Edition

This document provides an overview of the Data Control Language (DCL) in Teradata SQL. It describes the main DCL statements - GRANT, REVOKE, and GIVE which control user access and ownership. Privileges define what users can do with database objects and include permissions for CREATE, DROP, SELECT, UPDATE etc. The document lists the database objects these privileges can be applied to, such as DATABASE, TABLE, VIEW, and more.

Uploaded by

dharmendard
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Teradata SQL Quick Reference Guide: Simplicity by Design, Second

Edition
by Tom Coffing, Michael Larkins and Steve Wilmes
Coffing Data Warehousing. (c) 2006. Copying Prohibited.

Reprinted for Anil Kumar Gupta, IBM


[email protected]
Reprinted with permission as a subscription benefit of Books24x7,
http://www.books24x7.com/

All rights reserved. Reproduction and/or distribution in whole or in part in electronic,paper or


other forms without written permission is prohibited.

TeradataSQLQuickReferenceGuide:SimplicitybyDesign,SecondEdition

Appendix B: Data Control Language (DCL)


Data Control Language (DCL) Statements
Data Control Language (DCL) is normally used by the database administrator (DBA). These statements control the ownership and access by
users to the database objects.
There are three DCL statements that will be covered:
n

GRANT

REVOKE

GIVE

gives permission to perform a specific operation


- takes away permission to perform a specific operation
transfers ownership of a database or user

Privileges
Access rights, often referred to as privileges, define what a user can and cannot do with a particular object.
The privileges are defined in the following categories:
n

CREATE

DROP

CHECKPOINT

DUMP

RESTORE

EXECUTE

REFERENCES

INDEX

DELETE

INSERT

SELECT

UPDATE

- make a new object


- remove an object
- mark rows as valid
- backup or archive to the checkpoint
- return to disk from an archive
- run a macro or stored procedure
- table or column level access
- secondary index operations
- remove rows from a table or view
- build new rows in a table or view
- read rows from a table or view
- modify columns or rows in a table or view

The database objects that can be allowed with the CREATE / DROP:
n

DATABASE / USER

TRIGGER

PROCEDURE

MACRO

TABLE

VIEW

Page 2 / 2
Reprintedforibm\[email protected],IBM

CoffingDataWarehousing,CoffingPublishing(c)2006,CopyingProhibited

You might also like