upper
Converts a string to upper-case.
Syntaxβ
upper(str)
Parametersβ
str
: the string to convert. Ifstr
is not a string type, it will try implicit cast first.
Return valuesβ
Return an upper-case string.
Examplesβ
MySQL [test]> select C_String, upper(C_String) from ex_iceberg_tbl;
+-------------------+-------------------+
| C_String | upper(C_String) |
+-------------------+-------------------+
| Hello, StarRocks! | HELLO, STARROCKS! |
| Hello, World! | HELLO, WORLD! |
+-------------------+-------------------+