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, 1392🔥, 0💬
Popular Posts:
How To Get the Definition of a View Out of the SQL Server in SQL Server? If you want get the definit...
How To Generate Random Numbers with the RAND() Function in SQL Server Transact-SQL? Random numbers a...
How To Provide Default Values to Function Parameters in SQL Server Transact-SQL? If you add a parame...
How Fixed Length Strings Are Truncated and Padded in SQL Server Transact-SQL? When the length of the...
How REAL and FLOAT Literal Values Are Rounded in SQL Server Transact-SQL? By definition, FLOAT(n) sh...