Professional Documents
Culture Documents
Data Control Language
Data Control Language
In
Oracle
Data Control Language
• A data control language (DCL) is a syntax used
to control access to data stored in a database.
• Privilege is the right to access another user’s
objects.
• We can grant privileges(insert, select, delete,
update) to others.
• We can also withdraw the privileges.
Grant Privilege
• Privilege such as insert, delete and update can
be granted to other users.
• SYNTAX
Grant privileges on <object_name> to
<user_name>
Example:
Grant select, insert, update on detail to office;
CREATING A TABLE
INSERT:-
SQL> Insert into PRODUCT_ADD (prod_code, prod_name) VALUES
(1001, “CYNTHOL”);