Incorrect usage of UNION and ORDER BY?

后端 未结 7 2399
感动是毒
感动是毒 2020-12-25 09:11

how can i use union and order by in mysql ?

select * from _member_facebook 
inner join _member_pts 
ON _member_facebook._fb         


        
7条回答
  •  没有蜡笔的小新
    2020-12-25 10:09

    I think use of parenthesis is mandatory if you use order by or limit or both. I tried working on a query by using limit and order by interchangeably without parenthesis and the query did not work. It only worked after adding parenthesis.

提交回复
热议问题