Mysql 的一些基本用法

一、增加字段

alter table students add IsImportJcxx int set default 0 COMMENT '是否导入基础信息平台 1 是导入';

二、删除字段

alter table `provincestudentinfo` drop column NativePlace;  

 三、创建表

 CREATE TABLE `表名` 
(
`IconId` int  not null auto_increment,
`字段名` int comment '字段说明',
primary key (`IconId`)
)ENGINE=InnoDB  DEFAULT CHARSET=utf8;

 

posted @ 2015-06-09 16:00  朝闲  阅读(137)  评论(0编辑  收藏  举报