这是标准的建表语句,特别要看关于编码的部分
create database `test` default character set utf8 collate utf8_bin;
create table `class` (
`id` int(11) not null auto_increment,
`name` varchar(200) collate utf8_bin not null,
`owner` int(11) not null default '1',
`sort` int(11) not null default '0',
`node` int(11) not null default '0',
`created` varchar(20) collate utf8_bin not null,
primary key (`id`)