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, 257🔥, 0💬
Popular Posts:
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...
How To Calculate Age in Days, Hours and Minutes in SQL Server Transact-SQL? On many Web sites, news ...
How to download and install Microsoft SQL Server Management Studio Express in SQL Server? Microsoft ...
How To Connect ASP Pages to Oracle Servers in Oracle? If you are running Windows IIS Web server and ...
How To List All User Names in a Database in SQL Server? If you want to see a list of all user names ...