Skip to content

Commit 2285143

Browse files
committed
Point to LISTAGG documentation for LIST
1 parent b0b3d5f commit 2285143

1 file changed

Lines changed: 2 additions & 37 deletions

File tree

doc/sql.extensions/README.list

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,5 @@
11
SQL Language Extension: LIST
22

3-
Function:
4-
This function returns a string result with the concatenated non-NULL
5-
values from a group. It returns NULL if there are no non-NULL values.
3+
Since Firebird 6.0, LIST is an alias for the SQL standard function LISTAGG.
64

7-
Authors:
8-
Oleg Loa <loa@mail.ru>
9-
Dmitry Yemanov <dimitr@firebird.org>
10-
11-
Format:
12-
13-
<list function> ::=
14-
LIST '(' [ {ALL | DISTINCT} ] <value expression> [',' <delimiter value> ] ')'
15-
16-
<delimiter value> ::=
17-
{ <string literal> | <parameter> | <variable> }
18-
19-
Syntax Rules:
20-
1) If neither ALL nor DISTINCT is specified, ALL is implied.
21-
2) If <delimiter value> is omitted, a comma is used to separate
22-
the concatenated values.
23-
24-
Notes:
25-
1) Numeric and datetime values are implicitly converted to strings
26-
during evaluation.
27-
2) The result value is of type BLOB with SUB_TYPE TEXT for all cases
28-
except list of BLOB with different subtype.
29-
3) Ordering of values within a group is implementation-defined.
30-
31-
Examples:
32-
33-
A)
34-
SELECT LIST(ID, ':')
35-
FROM MY_TABLE
36-
37-
B)
38-
SELECT TAG_TYPE, LIST(TAG_VALUE)
39-
FROM TAGS
40-
GROUP BY TAG_TYPE
5+
See README.listagg for more information.

0 commit comments

Comments
 (0)