Common basic command mysql

show databases show all databases created

use mysql connection you use to the database

Supplementary: webstrom select which line the node can perform which line

Hierarchical representation of a database  

Library ----- "----- Table" field (attribute)

show tables show all your table

desc db display field attribute table

Additions and deletions to change search database of basic statements

select *from 表名

create database to create a database library name

Create a database table matters

1, must have an id value (logical meaning must not contain the actual meaning of the ID number is not allowed and the like)

2, type defines the data type

3, auto-increment primary key to select the whole

type Type Summary

int type integer

Long bigibt (21)

Float float

Double-precision floating-point double

String varchar (16)

Text text

INNoDB table read more, write better also common

alter table operation type table name +

 

 

 

 

 

 

 

 

 

 

Published 56 original articles · won praise 1 · views 1182

Guess you like

Origin blog.csdn.net/qq_40819861/article/details/104251681