建表
create table t_emp(
id int primary key auto_increment,
name varchar(50),
salary double,
age int
)type=innodb;
说明:
type=innodb,让该表支持事务。
auto_increment:自增长列。当插入记录时,
数据库自动为该列赋一个唯一的值。
随笔有些是自己写的,有些是根据网上的东西自己整理的,文章基本都是别人的,只是为方便查看复制到那里