Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 7
    No extra comma, which is nice, but also much easier to read and understand, in my opinion, than the accepeted solution. Many thanks! Commented Oct 25, 2012 at 19:47
  • 4
    This is not a reliable solution. Commented Feb 26, 2014 at 18:42
  • 4
    @lukasLansky its reliable as long as you dont care about the order Commented Apr 28, 2015 at 21:19
  • 1
    It could skip data from result even if you don't care about the order. Commented Feb 9, 2016 at 3:44
  • 1
    Add ORDER BY for reliable order? Commented Jul 12, 2017 at 14:20