当前位置:网站首页>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');如何实现如下查询排序结果:

边栏推荐
- webauthn——官方开发文档
- Native method merge word
- Logu p3398 hamster looks for sugar (double LCA on the tree to judge whether the two paths in the tree intersect)
- [AGC] build service 3 - authentication service example
- Binary tree topic -- p1030 [noip2001 popularization group] find the first order
- 计算序列之和
- 高德根据轨迹画线
- Primary key policy problem
- Uncover the secrets of Huawei application market application statistics
- Implement custom drawer component in quick application
猜你喜欢

Internship report skywalking distributed link tracking?

TIPC Cluster5

Special topic of binary tree -- Logu p1229 traversal problem (the number of traversals in the middle order is calculated when the pre and post order traversals of the multiplication principle are know

How to implement tabbar title bar with list component

【深入浅出玩转FPGA学习2----设计技巧(基本语法)】

webauthn——官方开发文档

一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)

PHP tea sales and shopping online store

2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises

OpenMLDB Meetup No.4 会议纪要
随机推荐
What are the methods of adding elements to arrays in JS
PLC-Recorder快速监控多个PLC位的技巧
Implementation of six singleton modes
从ros1到ros2配置的一些东西
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)
[play with FPGA learning 5 in simple terms ----- reset design]
Approximate sum count (approximate
How to implement tabbar title bar with list component
TIPC messaging3
Luogu p5536 [xr-3] core city (greed + tree DP looking for the center of the tree)
Why does LabVIEW lose precision in floating point numbers
C# 文件与文件夹操作
VS2019代码中包含中文内容导致的编译错误和打印输出乱码问题
Jenkins安装
How does the whole network display IP ownership?
Functional interfaces and method references
高德根据轨迹画线
SSRF
Primary key policy problem
tqdm的多行显示与单行显示