Mysql database (basic) Notes

Source: Internet
Author: User


Mysql database (basic) notes go to the installation directory... /bin/mysql.exe cd change Directory dir list all files in the current directory c: \ vesa \... \ a> Angle brackets indicate vasa/in drive C... .. indicates entering the specified directory cd space ted key to view the directory name in sequence> mysql space-u user name-p password (connect to the database using the user name and password) show databases; display the names of all databases www.2cto.com use; show tables; select * from data table names; view data insertion in the data table: insert into field name (Omitted not to write the field) values value; (field name 1-> value 1 field name 2-> value 2... same Order)
Update: update table name set field name = value; (where field name = value and field name = value) query: select field list from table name; (where field name = value and field name = value) delete: delete from table name; (where field name = value and field name = value) create database: create database name; delete list: drop table name ...; delete database: drop database name; view table attribute: describe table name; modify table attribute: alter table name modify column field name type; modify table Name: rename table original table name to a later table name; create a data table: create table data table name (item name type .., item Name type ..,......); author Dtdd

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.