MySQL创建表

1.不控制主键的起点

-- 1.不控制主键的起点
create table emb_t_dictBusType
(
    emb_c_busTypeID int unsigned primary key not null auto_increment,
  emb_c_busTypeEnName varchar(255) not null,
  emb_c_busTypeZhName varchar(255) not null
)engine = innodb default charset=gbk;

2.控制主键的起点

drop table if exists emb_t_dictBusType;
-- 控制主键的起点
create table emb_t_dictBusType
(
    emb_c_busTypeID int unsigned primary key not null auto_increment,
  emb_c_busTypeEnName varchar(255) not null,
  emb_c_busTypeZhName varchar(255) not null
)engine=innodb auto_increment=1 default charset=gbk;

 

posted @ 2016-12-19 09:49  魂牵绕明  阅读(192)  评论(0编辑  收藏  举报