創建數據表
Create table [if not exists] table_name(column_name data_type,…….)
UNSIGNED 無符號SIGNED 有符號
查看創建的表
show tables;

查看mysql中所有的表
show tables from mysql;

查看表結構
show columns from tb1;

(也可以用 DESC tb1;)
插入記錄
Insert[into]table_name [(column,…)]values(val,….)
insert tb1 VALUES ('TOM',25,7863.25);

insert tb1(username,salary) VALUES('John',4500.69);

select * from tb1;

每張數據表只能存在一個主鍵
主鍵保證記錄的唯一性
主鍵自動為NOT NULL

Auto_increment 自動編碼
Primary key 主鍵