MySQL Join Query

后端 未结 3 721
暖寄归人
暖寄归人 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:08

    Try this:

    Select page_section_id.* from page_section_id natural join page_section 
    WHERE page_section_id IN (1,2,3,4,5) order by page_section_id.display_order 
    

提交回复
热议问题