select * from classroom where id in (select id from classroom group by name,id)
你试试