Collections:
NAME_CONST() - PS Thread ID of Given Connect
How to provide a column name for a constant in a SELECT statement using the NAME_CONST() function?
✍: FYIcenter.com
NAME_CONST(con) is a MySQL built-in function that provides a column name for a constant in a SELECT statement. For example:
SELECT NAME_CONST('domain', 'dba.fyicenter.com'); -- +-------------------+ -- | domain | -- +-------------------+ -- | dba.fyicenter.com | -- +-------------------+ SELECT NAME_CONST('length', LENGTH('dba.fyicenter.com')); ERROR 1210 (HY000): Incorrect arguments to NAME_CONST
Reference information of the NAME_CONST() function:
NAME_CONST(const): name Provides a column name for a constant in a SELECT statement. Arguments, return value and availability: const: Required. The constant to be named. name: Return value. The column name in the result set. Available since MySQL 4.0.
⇒ NULLIF() - NULL on Equal Values
⇐ LEAST() - Finding the Least/Minimum Value
2023-12-19, 251🔥, 0💬
Popular Posts:
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
How To Look at the Current SQL*Plus System Settings in Oracle? If you want to see the current values...
How to download and install Microsoft .NET Framework Version 2.0 in SQL Server? .NET Framework Versi...
What is dba.FYIcenter.com Website about? dba.FYIcenter.com is a Website for DBAs (database administr...
How To Provide Default Values to Function Parameters in SQL Server Transact-SQL? If you add a parame...