MySQL Forums
Forum List  »  Newbie

Re: Trouble Sorting Statement after UNION and changin Date
Posted by: Peter Brawley
Date: October 11, 2017 09:05AM

The first select in the union shows yyyy-mm-dd dates. The second shows dd-mm-yyyy.

As the manual says (https://dev.mysql.com/doc/refman/5.7/en/union.html), ot order a select stmt in a union, enclose the stmt in parentheses.

Options: ReplyQuote


Subject
Written By
Posted
Re: Trouble Sorting Statement after UNION and changin Date
October 11, 2017 09:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.