mysql 的isam引擎不支持int字段递减
发布日期:2021-05-07 00:53:25 浏览次数:18 分类:原创文章

本文共 729 字,大约阅读时间需要 2 分钟。

mysql> create table use1 ( userid int(10) not null unique primary key auto_increment, username varchar(10) not null, passwd varchar(20) not null, info text, unique index index_uid(userid desc), index index_user (username,passwd), fulltext index index_info(info))engine = myisam;ERROR 1178 (42000): The storage engine for the table doesn't support descending indexes

解决方法,换成innodb引擎后就可以使用了。

 

mysql> create table use4 (    userid int(10) not null unique primary key auto_increment,   username varchar(10) not null,    passwd varchar(20) not null, info text,   unique index index_uid(userid desc),   index index_user (username,passwd),   fulltext index index_info(info))engine = innodb;Query OK, 0 rows affected, 1 warning (0.20 sec)

 

上一篇:《百面机器学习》读书笔记(二)-模型估计
下一篇:中科大-凸优化 笔记(lec1)-综述、简介优化问题

发表评论

最新留言

做的很好,不错不错
[***.243.131.199]2025年04月08日 10时14分37秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章