NAME_CONST()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns a value with an associated column name.
USAGE
NAME_CONST(name, value)
Argument Name | Description |
---|---|
| The column name |
| 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.
EXAMPLES
SELECT NAME_CONST('MariaDB', 1);
+--------------------------+
| NAME_CONST('MariaDB', 1) |
+--------------------------+
| 1 |
+--------------------------+
SELECT NAME_CONST(NULL, 2);