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, 1298🔥, 0💬
Popular Posts:
How To View Data Files in the Current Database in Oracle? If you want to get a list of all tablespac...
How to execute statements under given conditions in SQL Server Transact-SQL? How to use IF ... ELSE ...
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...
How to set database to be READ_ONLY in SQL Server? Databases in SQL Server have two update options: ...
How To Format Time Zone in +/-hh:mm Format in SQL Server Transact-SQL? From the previous tutorial, y...