-SELECT xmlagg(x) FROM (SELECT * FROM test ORDER BY y DESC) AS tab;
+SELECT xmlagg(x) FROM (SELECT x FROM test ORDER BY y DESC) AS tab;
]]>
- But this approach is not guaranteed to work in all situations, and
- it is not strictly SQL-conforming. A future version of PostgreSQL
- might provide an additional feature to control the order in a
- better-defined way (xmlagg(expr ORDER BY expr, expr,
- ...).
+ But this syntax is not allowed in the SQL standard, and is
+ not portable to other database systems. A future version of
+
PostgreSQL> might provide an additional feature to control
+ the order in a better-defined way (xmlagg(expr ORDER BY expr, expr,
+ ...)).