比如 设备记录表为 ss_file ,其中 ss01 栏位为 设备 ss02 为日期select ss01 ,max(ss02) from ss_file group by ss01 就是相同的设备,只显示最大的日期那笔记录