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
2025-01-07, 3017🔥, 0💬
Popular Posts:
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...
What Are the Underflow and Overflow Behaviors on FLOAT Literals in SQL Server Transact-SQL? If you e...
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
How To Change the Name of a Database User in SQL Server? If you want to change the name of an existi...
How to print value on console in SQL Server Transact-SQL? How to use the PRINT statements? In Transa...