Mysql-based DML, DDL, DCL definitions

Source: Internet
Author: User

I. DML

Data manipulation language (manipulation Language, DML) is a set of instructions in the SQL language that is responsible for running data access to database objects, with the INSERT, UPDATE, delete three directives as the core, representing inserts, updates, and deletions, respectively. is to develop the instructions that the data-centric application must use,

Main command:

Insert, UPDATE, deleteselect column name from table name UPDATE table name SET column name = new value WHERE Column name = value INSERT INTO table_name (column 1, column 2,...) Values (value 1, value 2,....) DELETE from table name WHERE column name = value

Ii. DDL (data definition language)

The database Schema definition language DDL (Data definition Language) is the language used to describe the real-world entities to be stored in the database.

Common commands:

  create,        CREATE DATABASE        create function       create function udf        create index       create  PROCEDURE       CREATE TABLE        CREATE TRIGGER       CREATE USER        CREATE VIEW       SHOW        SHOW CREATE DATABASE       SHOW CREATE  function       show create procedure        show create table       spatial  drop        alter table       deallocate prepare        DROP DATABASE       DROP FUNCTION        drop function udf       drop  INDEX       DROP PROCEDURE        DROP TABLE       DROP TRIGGER        DROP USER       DROP VIEW  ALTER     topics:   ALTER DATABASE   ALTER FUNCTION    ALTER PROCEDURE   ALTER TABLE   ALTER VIEW    grant   spatial


Iii. DCL (Data Control Language)

The DCL (Data Control Language) is a database control language. is a statement that is used to set or change permissions for a database user or role, including (Grant,deny,revoke, etc.) statements. By default, only people such as Sysadmin,dbcreator,db_owner or db_securityadmin have the power to execute the DCL

Eg: Create a user for the dbname library and give all permissions grant all on dbname.* to ' user1 ' @ ' 192.168.12.9 ' identified by ' password ';


Mysql-based DML, DDL, DCL definitions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.