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, 1997🔥, 0💬
Popular Posts:
How To Generate Random Numbers with the RAND() Function in SQL Server Transact-SQL? Random numbers a...
How To Change the Password for Your Own User Account in MySQL? If you want to change the password of...
How To Get Help Information from the Server in MySQL? While you are at the "mysql>" prompt, y...
Where to find SQL Server database server tutorials? Here is a collection of tutorials, tips and FAQs...
Where to find answers to frequently asked questions on Transaction Management: Commit or Rollback in...