Collections:
Function Argument Modifier
What Is Function Argument Modifier?
✍: FYIcenter.com
Function argument modifier is an expression placed before or after
a function argument to modify the behavior of the function.
For example:
SET @str = 'Yahooo'; SELECT TRIM(TRAILING 'o' FROM @str); -- +------------------------------+ -- | TRIM(TRAILING 'o' FROM @str) | -- +------------------------------+ -- | Yah | -- +------------------------------+
Sometimes argument modifiers are used to make the function call more readable. For example:
SET @str = 'Yahooo';
SELECT POSITION('o' IN @str), LOCATE('o', @str);
-- +-----------------------+-------------------+
-- | POSITION('o' IN @str) | LOCATE('o', @str) |
-- +-----------------------+-------------------+
-- | 4 | 4 |
-- +-----------------------+-------------------+
⇒ Variable Number of Arguments
⇐ Function Name Case Insensitive
2023-11-14, 1616🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions on PHP Connections and Query Execution for MySQL...
How To Get Help Information from the Server in MySQL? While you are at the "mysql>" prompt, y...
What is sqlservr.exe - Process - SQL Server (SQLEX?PRESS) in SQL Server? Process sqlservr.exe is the...
How To List All Stored Procedures in the Current Database in SQL Server Transact-SQL? If you want to...
How Fixed Length Strings Are Truncated and Padded in SQL Server Transact-SQL? When the length of the...