当前位置:网站首页>数据库SQL语句实现数据分解的函数查询
数据库SQL语句实现数据分解的函数查询
2022-07-29 04:07:00 【CSDN问答】
数据库SQL语句,实现一下查询需要什么函数
原有数据表: 单号 品名 规格 订单数量 要求每包数量
B220702002 AF-DF A-A-A 2100 500
需要查询后的数量:
序号 单号 品名 规格 订单数量 本包数量
1 B220702002 AF-DF A-A-A 2100 500
2 B220702002 AF-DF A-A-A 2100 500
3 B220702002 AF-DF A-A-A 2100 500
4 B220702002 AF-DF A-A-A 2100 500
5 B220702002 AF-DF A-A-A 2100 100
边栏推荐
- How to write SQL statements about field conversion
- Ma Zhixing entered the mass production of front loading, starting with the self-developed domain controller?
- Lua语言(stm32+2G/4G模块)和C语言(stm32+esp8266)从字符串中提取相关数据的方法-整理
- Is the browser multi process or single process?
- String template of ES6 new features and methods to simplify objects and functions
- AssertionError(“Torch not compiled with CUDA enabled“)
- Design of environment detection system based on STM32 and Alibaba cloud
- 1985-2020 (8 Editions) global surface coverage download and introduction
- JS realizes the function of one click Copy
- Value transmission and address transmission of C language, pointer of pointer
猜你喜欢
Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
企业网的三层架构
BGP的基础配置---建立对等体、路由宣告
Ma Zhixing entered the mass production of front loading, starting with the self-developed domain controller?
Data mining -- code implementation of association analysis example (Part 2)
Install the laser of ROS_ scan_ Problems encountered in match library (I)
C language to achieve three chess game (detailed explanation)
内连接和左连接简单案例
Basic configuration of BGP - establish peers and route announcements
华为天才少年稚晖君做了一把模块化机械键盘,引起极客圈地震,网友:这才是真正的客制化...
随机推荐
Mmdetection preliminary use
There is a special cryptology language called asn.1
Communication between parent-child components and parent-child components provide and inject
大厂们终于无法忍受“加一秒”了,微软谷歌Meta等公司提议废除闰秒
当我从数据库获取到了winfrom特定的控件ID之后我需要通过这个ID找到对应的控件,并对控件的TEXT文本进行赋值这该怎么做
The table of antd hides the pager when there is only one page
Function pointer and callback function
When array is used as a function parameter, it is better to use the array size as a function parameter
SQL window function
[kvm] create virtual machine from kickstart file
EMD empirical mode decomposition
Data mining -- Introduction to the basis of association analysis (Part 1)
Pointer constant and constant pointer
请问为什么我进行mysql数据update时,kafka中采集到的是先删除原纪录(op d)再新增新
SQL窗口函数
Asp.net MVC中文件夹中的控制器如何跳转到根目录的控制器中?
nacos注册中心
Typescript from introduction to proficiency (XXIV) using import syntax
路西法98-生活记录ing
Who can elaborate on the semi consistent read under mysqlrc and how to reduce the deadlock probability?