MySQL Operation basic command

Source: Internet
Author: User

Index  from table_name
CREATE INDEX: CREATE INDEX on table_name (COLUMN_NAME) creates a unique index: creationUnique  index on table_name (COLUMN_NAME) Creating a federated Index:Createindex  on table_name (COLUMN1_NAME,COLUMN2_NAME)

Delete index:drop -Index on TABLE_NAME
Create Table table_name
New table:create table table_name (
              ID int NOT NULL auto_increment,              name varchar (NO) NULL, age              int not NULL,              primary key (ID)
      
Insert statement: INSERT INTO table_name (COLUMN1_NAME, Column2_name) VALUES (column1_value,column2_value)
Emptying the information in the table:truncatetable table_name

 Full  from table_name

MySQL Operation basic command

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.