当前位置:网站首页>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语句。
边栏推荐
- matplotlib matplotlib中plt.grid()
- Data-driven anomaly detection and early warning of 21 May Day C
- With the QQ group file storage function of super nice, you immediately have n cloud disks that are easy to download and never expire
- 行业春寒回暖,持续承压的酒店企业于何处破局?
- 请问在手机上开户股票,还是去证券公司开户安全?
- Applet cloud development joint table data query and application in cloud function
- Flitter gets the height of the top status bar
- PMP考试多少分算通过?
- [zufe school competition] difficulty classification and competition suggestions of common competitions in the school (taking Zhejiang University of Finance and economics as an example)
- Pytorch_Geometric(PyG)使用DataLoader报错RuntimeError: Sizes of tensors must match except in dimension 0.
猜你喜欢
[competition -kab micro entrepreneurship competition] KAB National College Students' micro entrepreneurship action participation experience sharing (including the idea of writing the application form)
Analysis on the thinking of 2022 meisai C question
8. Intelligent transportation project (1)
Benefits and types of cloud network technology
匯付國際為跨境電商賦能:做合規的跨境支付平臺!
How much money have I made by sticking to fixed investment for 3 years?
Cassava tree disease recognition based on vgg16 image classification
TLAB mechanism of JVM object memory allocation and TLAB process in G1
puzzle(019.2)六边锁
Etcd教程 — 第四章 Etcd集群安全配置
随机推荐
oracle 函数 触发器
Creo makes a mobius belt in the simplest way
x86的编码格式
Atguigu---17-life cycle
[2020 cloud development + source code] 30 minutes to create and launch wechat applet practical project | zero cost | cloud database | cloud function
汇付国际为跨境电商赋能:做合规的跨境支付平台!
使用Navicat对比多环境数据库数据差异和结构差异,以及自动DML和DDL脚本
Benefits and types of cloud network technology
Test Development Engineer
The problem of wirengpi program running permission
[smart agriculture program] smart agriculture small program project is currently popular.
在指南针上面开股票账户好不好,安不安全?
Is it safe to open an account online? Who can I ask?
puzzle(019.2)六边锁
Is it safe to open a stock account on the compass?
Is it safe to open an account in a mobile phone or a securities company?
Specific usage of sklearn polynomialfeatures
The meshgrid() function in numpy
Numpy numpy中的meshgrid()函数
Prediction of pumpkin price based on BP neural network