#建数据库
#create database db1 
#character set 'utf8'
#collate 'utf8_general_ci';#建表
#create table basicRecord (
#no int auto_increment primary key,
#name varchar(30) not null,
#birthday varchar(30) not null,
#sex varchar(10) not null,
#address varchar(30) not null,
#number varchar(30) not null
#)ENGINE=InnoDB DEFAULT CHARSET=utf8;
使用这句老是出错:
update basicRecord set name="詹三" where no=1;不论直接在命令行下输入还是用\. c:\mysql.sql方法都报错(sql文件是ansi编码,换成utf-8编码也是报错)
MySQLSQLUTF-8编码数据库