LISTAGG

Syntax

LISTAGG
(
  expression  IN TEXT
)
RETURNS text;

LISTAGG
(
  expression  IN TEXT,
  delimite    IN TEXT
)
RETURNS text;

Overview

The LISTAGG function is a PostgreSQL implementation extension of Oracle's LISTAGG aggregate function. This function combines multiple text values within a group into a single string and returns it.

Parameters

Parameter
Description

expression

text type; the value to aggregate, ignoring it if it is NULL.

delimiter

text type; the delimiter to insert between each text value. If called without a delimiter, the internal

Example

Last updated