toUpper()
returns the original string in uppercase.
Syntax: toUpper(original)
Returns: A String.
Arguments
Name | Description |
original | An expression that returns a string. |
Example
RETURN toUpper("hello, world!")
The value returned will be a string that will be similar to the original string “HELLO, WORLD!”, except that all lower case alphabets will be replaced by their upper case equivalents. Hence the returned string will be “HELLO, WORLD!”.
Considerations
toUpper(null)
returnsnull
.
Example
RETURN toUpper("cypher tutorials!")
Returns the following Result
toUpper("cypher tutorials!") |
"CYPHER TUTORIALS!" |
Example
RETURN toUpper("Cypher Tutorials!")
Returns the following Result
toUpper("Cypher Tutorials!") |
"CYPHER TUTORIALS!" |
Example
RETURN toUpper("CYPHER TUTORIALS!")
Returns the following Result
toUpper("CYPHER TUTORIALS!") |
"CYPHER TUTORIALS!" |
Example
RETURN toUpper(null)
Returns the following Result
toUpper(null) |
null |
Note– toUpper(null)
returns null
.