SQL 分组后获取其中一个字段最大值的整条记录 【转载】
摘要:SQL 分组后获取其中一个字段最大值的整条记录 方法一:(效率最高)select * from test as a where typeindex = (select max(b.typeindex) from test as b where a.type = b.type );方法二:(效率次之)
阅读全文
posted @ 2020-08-04 15:50
posted @ 2020-08-04 15:50
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
26 | 27 | 28 | 29 | 30 | 31 | 1 | |||
2 | 3 | 4 | 5 | 6 | 7 | 8 | |||
9 | 10 | 11 | 12 | 13 | 14 | 15 | |||
16 | 17 | 18 | 19 | 20 | 21 | 22 | |||
23 | 24 | 25 | 26 | 27 | 28 | 1 | |||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
什么叫专业?这就叫专业! 收藏慢慢学习消化。
FirstThread lock进来之后缺少 Monitor.Pulse(m_smplQueue),否则情形2时会执行不下去
Powered by:
博客园
Copyright © 2025 禅道
Powered by .NET 9.0 on Kubernetes