MySQL Forums
Forum List  »  General

Re: In Mysql, How can I get the result which like grouping_id() in oracle
Posted by: Peter Brawley
Date: April 01, 2016 10:41AM

MySQL does not have Grouping_Id().

What use is conv() in conv(CONCAT(ISNULL(year)), 2, 10)? IsNull(...) returns 0 or 1, base is irrelevant.

But Group By IsNull(year) groups just by 0 and 1---is that really what you want!?

Options: ReplyQuote




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.