truncate table fke_message;
alter table fke_message auto_increment = 10001;
DROP TABLE IF EXISTS `fke_message`; CREATE TABLE `fke_message` ( `id` int(10) NOT NULL AUTO_INCREMENT, `username` varchar(40) NOT NULL DEFAULT '' COMMENT '用户名', `tel` varchar(20) NOT NULL DEFAULT '' COMMENT '电话号码', `email` varchar(40) NOT NULL DEFAULT '' COMMENT '电子邮箱', `msginfo` varchar(255) NOT NULL DEFAULT '' COMMENT '留言信息', `createdate` int(11) NOT NULL DEFAULT '0' COMMENT '时间戳', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1. 统计用户量
select count(distinct id) from fke_member
alter table e_down add soft_version1 varchar(50) NOT NULL default '' ;
alter table address modify column city varchar(50) NOT NULL default '';
alter table member add index id_index(id);
create database test default CHARACTER SET utf8 COLLATE utf8_general_ci;
原文地址:http://blog.csdn.net/wujiangwei567/article/details/45540995