当前位置:网站首页>mysql链表数据存储查询排序问题
mysql链表数据存储查询排序问题
2022-07-02 09:34:00 【CSDN问答】
mysql数据表中的原始数据结构:
-- ------------------------------ Table structure for asort-- ----------------------------DROP TABLE IF EXISTS `asort`;CREATE TABLE `asort` ( `from` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `to` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `mark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;-- ------------------------------ Records of asort-- ----------------------------INSERT INTO `asort` VALUES ('START', 'A', '');INSERT INTO `asort` VALUES ('A', 'B', '');INSERT INTO `asort` VALUES ('A', 'F', 'FALSE');INSERT INTO `asort` VALUES ('F', 'B', 'RETURN');INSERT INTO `asort` VALUES ('B', 'C', '');INSERT INTO `asort` VALUES ('C', 'D', '');INSERT INTO `asort` VALUES ('C', 'G', 'FALSE');INSERT INTO `asort` VALUES ('G', 'D', 'RETURN');INSERT INTO `asort` VALUES ('D', 'H', 'FALSE');INSERT INTO `asort` VALUES ('H', 'D', 'RETURN');INSERT INTO `asort` VALUES ('D', 'E', '');INSERT INTO `asort` VALUES ('E', 'END', '');INSERT INTO `asort` VALUES ('E', 'I', 'FALSE');INSERT INTO `asort` VALUES ('I', 'END', 'RETURN');
如何实现如下查询排序结果:
边栏推荐
- [play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]
- JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
- VS2019代码中包含中文内容导致的编译错误和打印输出乱码问题
- Binary tree topic -- Luogu p3884 [jloi2009] binary tree problem (DFS for binary tree depth BFS for binary tree width Dijkstra for shortest path)
- LVM operation
- TIPC messaging3
- Use Huawei performance management service to configure the sampling rate on demand
- II Stm32f407 chip GPIO programming, register operation, library function operation and bit segment operation
- 2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
- How to use ide to automatically sign and debug Hongmeng application
猜你喜欢
数字化转型挂帅复产复工,线上线下全融合重建商业逻辑
【IDEA】使用插件一键逆向生成代码
Why does LabVIEW lose precision in floating point numbers
The first white paper on agile practice in Chinese enterprises was released | complete download is attached
enumrate的start属性的坑
[applinking practical case] share in app pictures through applinking
OpenMLDB Meetup No.4 会议纪要
PKG package manager usage instance in FreeBSD
mmrotate旋转目标检测框架使用记录
Special topic of binary tree -- acwing 1589 Building binary search tree
随机推荐
The difference between self and static in PHP in methods
接口调试工具概论
II Stm32f407 chip GPIO programming, register operation, library function operation and bit segment operation
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)
PLC-Recorder快速监控多个PLC位的技巧
String (Analog
金山云——2023届暑期实习
[AGC] build service 3 - authentication service example
ctf 记录
TIPC messaging3
Binary tree topic -- Luogu p3884 [jloi2009] binary tree problem (DFS for binary tree depth BFS for binary tree width Dijkstra for shortest path)
The first white paper on agile practice in Chinese enterprises was released | complete download is attached
高德根据轨迹画线
How does the whole network display IP ownership?
Creation and use of unified links in Huawei applinking
Primary key policy problem
Order by注入
通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
flink二开,实现了个 batch lookup join(附源码)
[in simple terms, play with FPGA learning 3 ----- basic grammar]