create table `自動` ( `社員コード` BIGINT NOT NULL AUTO_INCREMENT ,`氏名` VARCHAR(50) ,primary key(`社員コード`) ) または create table `自動` ( `社員コード` BIGINT NOT NULL AUTO_INCREMENT UNIQUE ,`氏名` VARCHAR(50) )
alter table `テーブル名` change column `列名` `列名` int unsigned not null auto_increment,add index (`列名`)