You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, GroupConcat() only accepts "asc", "desc" and None for ordering parameter.
But GROUP_CONCAT supports more complex features in ORDER BY.
As an example, multiple columns and expressions:
GROUP_CONCAT(column1 ORDER BY column2, NATURAL_SORT_KEY(column3) SEPARATOR ', ') AS mycolumn
In the example above, the ordering can be done using "other" columns (column2 and column3) similar to a standard "ORDER BY". (We use the raw SQL above since GroupConcat() don't support this at the moment)
Description
Currently,
GroupConcat()
only accepts "asc", "desc" and None forordering
parameter.But
GROUP_CONCAT
supports more complex features in ORDER BY.As an example, multiple columns and expressions:
In the example above, the ordering can be done using "other" columns (
column2
andcolumn3
) similar to a standard "ORDER BY". (We use the raw SQL above since GroupConcat() don't support this at the moment)As shown in the MySQL docs:
and MariaDB docs even added
LIMIT
support:The text was updated successfully, but these errors were encountered: