W 3 School Learning Database

Source: Internet
Author: User
Tags create index

W3 School Learning Database address:

Http://www.jb51.net/w3school/sql/sql_select.htm

One, SQL syntax

SQL DML and DDL

SQL can be divided into two parts: Data manipulation Language (DML) and data definition language (DDL).

SQL (Structured Query language) is the syntax for executing queries. However, the SQL language also contains syntax for updating, inserting, and deleting records.

The query and update Directives form the DML portion of SQL:

    • SELECT -get data from a database table
    • Update-updating data in a database table
    • Delete-deletes data from the database table
    • INSERT INTO-inserts data into a database table

The Data definition language (DDL) portion of SQL gives us the ability to create or delete tables. We can also define indexes (keys), specify links between tables, and impose constraints between tables.

The most important DDL statement in SQL:

    • CREATE database-creating new databases
    • alter database-Modify Databases
    • CREATE TABLE-Creates a new table
    • ALTER TABLE -Change (change) database table
    • Drop Table-delete tables
    • CREATE index-Creating indexes (search key)
    • Drop Index-delete indexes

W 3 School Learning Database

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.