![]() |
1
2
|
![]() |
2
1
你不能这样做: 选择t.id,t.update\u index,t.estimated\u date 来自表名t 其中t.update\u index=(从tablename t1中选择MIN(update\u index),其中t1.id=t.id,t1.estimated\u date不为空) |
![]() |
3
1
|
![]() |
4
1
使用子查询
然而,你的样本数据更让我想到:
如果你和
|
![]() |
Community wiki · SQL语法新手 1 年前 |
|
KateMak · 是否将多行中的多列与唯一id组合? 1 年前 |
![]() |
Karuna · SQL中列内的筛选器[重复] 1 年前 |
![]() |
Irvan Affandy · 为另一个选择选择声明的键 1 年前 |
![]() |
Community wiki · 这个MySQL语句出了什么问题? 1 年前 |
![]() |
Community wiki · 优化从同一表中提取的多列的查询 1 年前 |