MySQL Join Query

后端 未结 3 728
暖寄归人
暖寄归人 2020-12-22 06:19

I am having trouble with a MySQL join query - unfortunately I am not too good with joins.

Table page_section:
-------------------
id
page_id
name
display_ord         


        
3条回答
  •  悲哀的现实
    2020-12-22 07:11

    select pss.*
    from page_section_sub pss
    inner join page_section ps on pss.page_section_id = ps.id
    where pss.page_section_id in (1, 2, 3, 4, 5)
    order by ps.display_order
    

提交回复
热议问题