UPPER
Description
Converts a string to uppercase (UPPER in Transact-SQL).
Sample Source Pattern
Syntax
UPPER( string_expression ) Snowflake SQL complete documentation
UPPER( <expr> )JavaScript SQL complete documentation
String.toUpperCase( )Examples
Code:
SELECT UPPER('you are a prediction of the good ones') AS [UPPER]Output:
+-------------------------------------+
|UPPER |
+-------------------------------------+
|YOU ARE A PREDICTION OF THE GOOD ONES|
+-------------------------------------+Code:
SELECT
UPPER('you are a prediction of the good ones') AS UPPER;Output:
+-------------------------------------+
|UPPER |
+-------------------------------------+
|YOU ARE A PREDICTION OF THE GOOD ONES|
+-------------------------------------+Code:
CREATE OR REPLACE FUNCTION to_upper(str varchar)
RETURNS string
LANGUAGE JAVASCRIPT
AS
$$
return STR.toUpperCase();
$$;
SELECT TO_UPPER('you are a prediction of the good ones') UPPER;Output:
UPPER |
-------------------------------------+
YOU ARE A PREDICTION OF THE GOOD ONES|Known Issues
No issues were found.
Related EWIs
No related EWIs.
Last updated
