您的位置:首页 > 其它

Specified key was too long; max key length is 767 bytes

2009-10-27 14:42 288 查看
database: MySQL 6

operation: 建表

sqlcode:

drop table if exists Atable ;
create table Atable (
id varchar(192) not null primary key,
name varchar(20) not null
)
error: Specified key was too long; max key length is 767 bytes

cause: UTF-8 requires up to 4 bytes per character in MySQL6.

test:

"

drop table if exists Atable ;

create table Atable (

id varchar(191) not null primary key,

name varchar(20) not null

)

" is ok
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐