关于获取数据库表中相同类型的数据最大的一条记录

select * from public.manufacture_schedule as a
where version = (select max(b.version)
from public.manufacture_schedule as b
where a.no = b.no ) order by no

posted @ 2022-03-03 00:17  彼时的你,此时的我  阅读(81)  评论(0编辑  收藏  举报