设置数据库编码
CREATE DATABASE dbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
设置数据表编码
CREATE TABLE 'author' (
'authorid' char(20) NOT NULL,
'name' char(20) NOT NULL, 'age' char(20) NOT NULL, 'country' char(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
mysql中两种数据库引擎
ENGINE=MyISAM
ENGINE=InnoDB