取某列最大值行的字段值表TB序号 工时 类型1 2 A2 5 A3 1 A4 3 A取工时数最大的行的序号[解决办法]
select * from tb as t where not exists(select 1 from tb where 类型=t.类型 and 类型>t.类型)