立即学习:https://edu.csdn.net/course/play/27328/362519?utm_source=blogtoedu
show engines;
MyISAM 不支持事务 InnoDB 支持事务
支持三类数据库类型:数值 日期/时间 字符串
数值类型: int float decimal
日期时间 date datetime
字符串类型: char varchar text
DDL三类操作 ;创建 修改 删除
mysql -h localhost -u root -p
use mydb;
show tables;
create table contacts(
id int primary key,
name varchar(30),
phone varchar(11)
);
desc contacts;
alter table contacts add sex char(1);
desc contacts;
alter table contacts modify sex int;
desc contacts;
alter table contacts drop colum sex;
drop table contacts;