The following are learning about cloud computing course content source framework notes, here are details about the source of the third part of Mysql:
Operating Table
Create a table
mysql> create tables table name (field type (modifier))
Table View
View all the tables: mysql> show tables;
View table record: mysql> show table status like 'table';
View table structure: mysql> desc 'table name';
View table record: mysql> select * from 'table name' limit 10;
Modify table
Modify the table name: mysql> rename table 'source table name' to 'new table name';
Field recording operation
Field
Add fields: mysql> alter table 'table' add 'field' modifiers';
Delete field: mysql> alter table 'table' drop 'field';
Field Review: mysql> alter table 'table name' Change 'old field' new field 'modifiers';
recording
Add Record: insert into 'table (recording, recording)' values (), (), ();
:insert into '表名' values (),(),();
Modify Record: update 'table' set field = '' WHERE field = '';
Delete record: delete from 'table' where 'word