Collections:
Function Name Case Insensitive
Are MySQL function names case sensitive?
✍: FYIcenter.com
No. MySQL function names are not case sensitive.
You can write function names in upper case or lower case.
For example:
SELECT PI(), pi(), Pi(); -- +----------+----------+----------+ -- | PI() | pi() | Pi() | -- +----------+----------+----------+ -- | 3.141593 | 3.141593 | 3.141593 | -- +----------+----------+----------+
Function argument modifiers are also not case sensitive. For example:
SET @str = 'Yahooo'; SELECT TRIM(BOTH 'o' FROM @str), trim(both 'o' from @str); -- +--------------------------+--------------------------+ -- | TRIM(BOTH 'o' FROM @str) | trim(both 'o' from @str) | -- +--------------------------+--------------------------+ -- | Yah | Yah | -- +--------------------------+--------------------------+
⇐ Calling MySQL Built-in Functions
2025-09-18, 1398🔥, 1💬
Popular Posts:
How To Change the Name of a Database User in SQL Server? If you want to change the name of an existi...
How to connect SQL Server Management Studio Express to SQL Server 2005 Express in SQL Server? Once y...
How To Use DATEADD() Function in SQL Server Transact-SQL? DATEADD() is a very useful function for ma...
What Happens If the UPDATE Subquery Returns Multiple Rows in MySQL? If a subquery is used in a UPDAT...
How to set database to be READ_ONLY in SQL Server? Databases in SQL Server have two update options: ...