File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11SQL 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.
You can’t perform that action at this time.
0 commit comments