MySQL return first row of a joined table

前端 未结 5 611
庸人自扰
庸人自扰 2021-01-04 13:19

I have two tables (country & ducks) where the country table has every country in the world and the ducks table has a list of ducks with a country_id field to link to the

5条回答
  •  走了就别回头了
    2021-01-04 13:39

    Many databases have some equivalent of "select top 10 * from...". In mySql, the syntax would be "select * from ... limit 10".

    ... BUT ...

    In this case, uou really want "group by" and "max()"!

提交回复
热议问题