SQL DML Commands


Prev Tutorial Next Tutorial

DCL Commands in SQL

Data Control Language(DCL) are used to control access to data stored in a database. You can say in database language DCL are used to control privilege in database.

dcl command

DCL Commands

  • Grant: to allow specified users to perform specified tasks.
  • Revoke: to cancel previously granted or denied permissions.

To allow user to create session

Syntax

	

To allow user to create table

Syntax

	
grant to create table to username;

To give all privilage to user

Syntax

	
grant sysdba to username;

To take back permision

Syntax

	
revoke create table from username

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements