
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)
发表评论
最新留言
做的很好,不错不错
[***.243.131.199]2025年04月08日 10时14分37秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
Beautiful Soup基础入门
2019-03-05
点击控制盒子移动
2019-03-05
js求阶乘
2019-03-05
小程序图片正确使用方式(防止发布之后不显示)
2019-03-05
C++基础学习笔记08——模板
2019-03-05
Java学习
2019-03-05
Js函数
2019-03-05
Python机器学习算法基础概述
2019-03-05
关于OCR的一些有用的技术博客文章链接
2019-03-05
jquery中用on事件委托的方式绑定事件
2019-03-05
蓝桥杯 2016c/c++A组 方格填数
2019-03-05
L1-039 古风排版 (20分)
2019-03-05
L1-009 N个数求和 (20 分)
2019-03-05
L2-031 深入虎穴 (25 分)
2019-03-05
Unity之PlayerPrefs
2019-03-05
简单的xml读取存储方法(未优化)
2019-03-05
Flower
2019-03-05
Nginx---惊群
2019-03-05
Redis未授权漏洞
2019-03-05