Logidav Docs

ConcatWs extends FunctionNode
in package

Usage: CONCAT_WS(SEPARATOR, STR1, STR2, ... [ NOTEMPTY ])

CONCAT_WS() stands for Concatenate With Separator and is a special form of CONCAT(). The first argument is the separator for the rest of the arguments. The separator is added between the strings to be concatenated. The separator can be a string, as can the rest of the arguments. If the separator is NULL, the result is NULL.

The function is able to skip empty strings and zero valued integers by passing the parameter NOTEMPTY. This removes the need to wrap expressions in NULLIF statements when wanting to avoid empty values between separators.

Tags
author

Andrew Mackrodt andrew@ajmm.org

version
2011.06.12

Table of Contents

Properties

$notEmpty  : mixed
$values  : mixed

Methods

getSql()  : mixed
parse()  : mixed

Properties

$notEmpty

private mixed $notEmpty = false

Methods

getSql()

public getSql(SqlWalker $sqlWalker) : mixed
Parameters
$sqlWalker : SqlWalker

parse()

public parse(Parser $parser) : mixed
Parameters
$parser : Parser

        
On this page

Search results