当前位置:网站首页>sql两列变为多行过滤显示
sql两列变为多行过滤显示
2022-06-29 03:47:00 【CSDN问答】
在生产订单设置工序生产时,主订单生成三个子订单,需要将三个子订单工序排序在前,主订单工序放在最后
select a.FBILLNO,b.FSEQ,e.FBILLNO,d.FSEQ from T_prd_mo a inner join T_prd_moentry b on a.fid=b.FID -- 主订单
inner join T_PRD_MOENTRY_LK c on c.FSID=b.FENTRYID and c.FSTABLENAME='T_prd_moentry' --子订单明细lk表
inner join T_prd_moentry d on d.FENTRYID=c.FENTRYID --子订单
inner join T_prd_mo e on e.fid=d.FID
where a.FBILLNO='MO000472'
显示结果如下:

先将显示结果变为如下图:,语句如何写?

边栏推荐
- Go implements distributed locks
- [tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (I)
- Error: schema validation failed with the following error: the data path '' should not have other properties (projects)
- 分享 60 个神级 VS Code 插件
- 88. (cesium chapter) cesium aggregation diagram
- [ruoyi] ztree initialization
- An annotation elegant implementation of interface data desensitization
- 点云地图导入gazebo思路
- leetcode - 295. Median data flow
- 【资料上新】基于3568开发板的NPU开发资料全面升级
猜你喜欢

Seura 2测试代码总结

【C语言】 详解线程退出函数 pthread_exit

【TcaplusDB知识库】TcaplusDB表数据缓写介绍

《运营之光3.0》全新上市——跨越时代,自我颠覆的诚意之作

Kingbase export table structure

【TcaplusDB知识库】TcaplusDB-tcapulogmgr工具介绍(二)
![[Brillouin phenomenon] Study on simultaneous measurement system of Brillouin temperature and strain distribution in optical fiber](/img/92/57792ef733964230d36e0b9bb218b4.png)
[Brillouin phenomenon] Study on simultaneous measurement system of Brillouin temperature and strain distribution in optical fiber

87.(cesium篇)cesium热力图(贴地形)
![[tcaplusdb knowledge base] Introduction to tcaplusdb tcapulogmgr tool (II)](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcaplusdb knowledge base] Introduction to tcaplusdb tcapulogmgr tool (II)

Preliminary construction of SSM project environment
随机推荐
[World Ocean Day] tcapulusdb calls on you to protect marine biodiversity together
Data statistical analysis (SPSS) [5]
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)
Adelaidet (detectron2) & abcnet environment configuration
Technology cloud report: side B of mixed office: how to have both security and efficiency?
[tcapulusdb knowledge base] batch copy the game area
【TcaplusDB知识库】修改业务修改集群cluster
[tcapulusdb] I wish you all a healthy Dragon Boat Festival!
The efficiency of 20 idea divine plug-ins has been increased by 30 times, and it is necessary to write code
Data collection and management [2]
[interview guide] AI algorithm interview
MySQL Varcahr to int
Black screen and error reporting when loading custom models for gazebo with roslaunch
[fpga+sin] FPGA implementation of sinusoidal signal generator module based on DDS (direct digital synthesis)
Share 60 divine vs Code plug-ins
Wechat applet development Basics
Data collection and management [15]
88. (cesium chapter) cesium aggregation diagram
logstash启动过慢甚至卡死
Qtableview gets all currently selected cells