SELECT top 5 #record from #table order by id desc

Così non va? Io uso MySQL quindi non so se è giusto