This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-14. For the latest, interactive version please visit https://mariadb.com/kb/.

NAME_CONST

Sintassi

NAME_CONST(nome, valore)

Spiegazione

Restituisce il valore dato. Se usato per produrre una colonna di un set di risultati, NAME_CONST() fa sì che la colonna abbia il nome specificato. Gli argomenti devono essere costanti.

MariaDB [(none)]> SELECT NAME_CONST('myname', 14);
+--------+
| myname |
+--------+
|     14 |
+--------+
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.