seelct max(id) as id,设备名称,位置 from TB group by 设备名称,位置