What are DCL commands?

DCL or Data Control Language commands are used enforce access control to data within the database or database objects.

These are:

  • GRANT <previlige_name> ON <object_name> TO <user_name>
  • REVOKE <previlige_name> ON <object_name> FROM <user_name>

What are DML commands?

DML or Data Modification Language commands are used in creating, updating or deleting data from the database objects such as tables.

These are:

  • INSERT INTO TABLE <table_name>
  • UPDATE <table_name> SET <column_name>=<new_value>
  • DELETE [ <column_name> | * ] FROM <table_name>

What are DDL commands?

DDL or Data Definition Language commands are used in defining or manipulating database schema. These are used for creating, modifying, and dropping the structure of database objects such as tables.

These are:

  • CREATE TABLE | DATABASE <object_name>
  • ALTER TABLE <table_name>
  • DROP TABLE | DATABASE <object_name>
Privacy Overview
Referbruv

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

3rd Party Cookies

This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.