建表

     create table t_emp(
       id int primary key auto_increment,
       name varchar(50),
       salary double,
       age int
      )type=innodb;
      说明:
       type=innodb,让该表支持事务。
          auto_increment:自增长列。当插入记录时,
         数据库自动为该列赋一个唯一的值。
posted @ 2016-05-16 11:39  YunMan  阅读(145)  评论(0编辑  收藏  举报