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;