NAME_CONST()

Overview

Returns a value with an associated column name.

USAGE

NAME_CONST(name, value)

Argument Name

Description

name

The column name

value

The column value

DETAILS

NAME_CONST() is a string function that returns the provided value.

Note that Xpand does not currently name the column using the provided name.

Providing a NULL column name generates an error.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT NAME_CONST('MariaDB', 1);
+--------------------------+
| NAME_CONST('MariaDB', 1) |
+--------------------------+
|                        1 |
+--------------------------+
SELECT NAME_CONST(NULL, 2);

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES