Professional Documents
Culture Documents
CCP603
CCP603
ANDHRA PRADESH
Name : Y. Vijaya Bhaskara Reddy
Designation : Senior Lecturer.
Branch : commercial and Computer
Practice.
Institute : G.P.W Kakinada.
Year/semester : VI semester.
Subject : Visual basics—II.
Subject code : CCP603.
Topic : Database Programming
Duration : 50 minutes.
Sub Topic : Structured Query Language.
Teaching Aids : PPTS.
OBJECTIVES
Statements in DCL.
RECAP
Data Manipulation Language statements
SELECT
INSERT
UPDATE
DELETE
Data Control Language (DCL):
It provides or takes away the privileges
from the database objects.
Syntax:
1. Grant sys_privilege to [user|role|public];
2. Grant obj_privilege [column list…] on object to
[user|role|public] [with grant option];
Revoke :
Revoke statement withdraws the granted
permission from the user.
Syntax:
Syntax:
Commit;
Rollback :
Rollback statement cancels the SQL transactions
of the database up to a given save point.
Syntax:
Rollback;
Savepoint :
Savepoint statement creates temporary bookmarks of
the SQL transactions which can be used to Rollback
transactions to the desired point marked by
bookmarks.
Syntax:
Ans: GRANT
GRANT
REVOKE
COMMIT
ROLLBACK
SAVEPOINT
Assignment