select * from bdcdj.lqentry1 a where 顺序号 in (select max(顺序号) from bdcdj.lqentry1 b WHERE b.archival_code IS NOT NULL group by archival_code);
通过archival_code分组 ,取顺序号的最大值。
原文地址:https://www.cnblogs.com/wangleping/p/11712175.html
时间: 2024-10-04 10:00:54