噼喱啪啦
首先是项目工程的编码第二个是数据库配置文件的编码第三个是创建表时的编码 给你一段创建表时编码设置的参考CREATE TABLE `drink` (
`id` smallint(6) UNIQUE AUTO_INCREMENT,
`name` varchar(10) NOT NULL,
`price` double NOT NULL,
`seldNumber` smallint(6) NOT NULL,
`surPlusNumber` smallint(6) NOT NULL,
`picture` varchar(20) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
UNIQUE KEY `picture` (`picture`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;