当前位置:网站首页>MySQL linked list data storage query sorting problem
MySQL linked list data storage query sorting problem
2022-07-02 11:31:00 【CSDN Q & A】
mysql Original data structure in data table :
-- ------------------------------ 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');
How to achieve the following query sorting results :
边栏推荐
- [ark UI] implementation of the startup page of harmonios ETS
- 2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
- 对毕业季即将踏入职场的年轻人的一点建议
- Verilog and VHDL signed and unsigned number correlation operations
- STM32 single chip microcomputer programming learning
- Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
- TIPC Cluster5
- Internship report skywalking distributed link tracking?
- RPA进阶(二)Uipath应用实践
- 制造业数字化转型和精益生产什么关系
猜你喜欢
QT learning diary 7 - qmainwindow
【IDEA】使用插件一键逆向生成代码
在连接mysql数据库的时候一直报错
TDSQL|就业难?腾讯云数据库微认证来帮你
V2x SIM dataset (Shanghai Jiaotong University & New York University)
mysql链表数据存储查询排序问题
PowerBI中导出数据方法汇总
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
PHP tea sales and shopping online store
随机推荐
Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
Basic usage of MySQL in centos8
[in simple terms, play with FPGA learning 3 ----- basic grammar]
ctf 记录
ros gazebo相关包的安装
Why does LabVIEW lose precision in floating point numbers
Eight sorting summaries
Astparser parsing class files with enum enumeration methods
[cloud native] 2.5 kubernetes core practice (Part 2)
在网上开股票账户安全吗?我是新手,还请指导
Resources读取2d纹理 转换为png格式
【云原生】2.5 Kubernetes 核心实战(下)
flink二開,實現了個 batch lookup join(附源碼)
Redis超出最大内存错误OOM command not allowed when used memory > 'maxmemory'
从ros1到ros2配置的一些东西
PowerBI中导出数据方法汇总
I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)
Thanos Receiver
Rest (XOR) position and thinking
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘