当前位置:网站首页>MySQL创建给出语句
MySQL创建给出语句
2022-06-25 09:34:00 【CSDN问答】
现有一组流程跟踪数据,请用SQL取出每一个流程中的最新创建的记录。数据结构如下,假设只有四个字段,依次为ID(主键),PROCESS_INS_ID(流程实例ID),CREATE_TIME(创建时间),DEAL_UID(处理人)
[{'1','P_1','2019-07-03 18:00:00','ZHANG'},{'2','P_1','2019-07-03 18:01:00','ZHANG'},
{'3','P_1','2019-07-03 18:02:00','ZHANG'},{'4','P_2','2019-07-03 18:00:00','ZHANG'},
{'5','P_2','2019-07-03 18:01:00','ZHANG'},{'6','P_3','2019-07-03 18:00:00','ZHANG'},
{'7','P_3','2019-07-03 18:01:00','ZHANG'},{'8','P_3','2019-07-03 18:02:00','ZHANG'}]
要求查询出的结果为
{'3','P_1','2019-07-03 18:02:00','ZHANG'} p_1中 创建时间最新的
{'5','P_2','2019-07-03 18:01:00','ZHANG'} p_2中 创建时间最新的
{'8','P_3','2019-07-03 18:02:00','ZHANG'} p_3中 创建时间最新的
请选择基于Oracle或者mysql数据库给出sql语句。
边栏推荐
- Online notes on Mathematics for postgraduate entrance examination (8): Kego equations, eigenvalues and eigenvectors, similarity matrix, quadratic series courses
- Arduino bootloader burning summary
- I put a two-dimensional code with rainbow candy
- Why should the terminal retail industry choose the member management system
- CSV parameterization in JMeter
- [zufe school competition] difficulty classification and competition suggestions of common competitions in the school (taking Zhejiang University of Finance and economics as an example)
- JMeter interface test, associated interface implementation steps (token)
- On the underlying index principle of MySQL
- sklearn 高维数据集制作make_circles 和 make_moons
- Applet cloud development joint table data query and application in cloud function
猜你喜欢

neo4jDesktop(neo4j桌面版)配置自动启动(开机自启)

Wallys/MULTI-FUNCTION IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL

manhattan_slam环境配置

Study on correlation of pumpkin price and design of price prediction model based on BP neural network

2022 meisai question a idea sharing

The first techo day Tencent technology open day, 628 waiting for you!
![[zufe school competition] difficulty classification and competition suggestions of common competitions in the school (taking Zhejiang University of Finance and economics as an example)](/img/ee/2b8aebc1c63902d4d85ff71fd45070.jpg)
[zufe school competition] difficulty classification and competition suggestions of common competitions in the school (taking Zhejiang University of Finance and economics as an example)

Matplotlib plt Axis() usage

Cassava tree disease recognition based on vgg16 image classification

CSV parameterization in JMeter
随机推荐
Why should the terminal retail industry choose the member management system
Test Development Engineer
Armbian version name comparison
Voiceprint Technology (I): the past and present life of voiceprint Technology
[zufe school competition] difficulty classification and competition suggestions of common competitions in the school (taking Zhejiang University of Finance and economics as an example)
Socket programming -- poll model
将jar包注册为服务,实现开机自动启动
瑞吉外卖项目(二)
Arduino bootloader burning summary
Question B of the East China Cup: how to establish a population immune barrier against novel coronavirus?
SQL advanced
浅谈Mysql底层索引原理
Huipay international permet au commerce électronique transfrontalier de devenir une plate - forme de paiement transfrontalière conforme!
Is it safe to open a stock account on the compass?
[competition -kab micro entrepreneurship competition] KAB National College Students' micro entrepreneurship action participation experience sharing (including the idea of writing the application form)
The meshgrid() function in numpy
Summarize two methods of configuring pytorch GPU environment
Reasons for Meiye to choose membership system
Voiceprint Technology (II): Fundamentals of audio signal processing
JMeter interface test, associated interface implementation steps (token)