REVERSE (NoSQL query)
APPLIES TO: NoSQL
Returns the reverse order of a string value.
Syntax
REVERSE(<string_expr>)
Arguments
Description | |
---|---|
string_expr |
A string expression. |
Return types
Returns a string expression.
Examples
The following example shows how to use this function to reverse multiple strings.
SELECT VALUE {
reverseAdventureWorks: REVERSE("AdventureWorks"),
reverseAdventureWorksBack: REVERSE("skroWerutnevdA"),
doubleReverseAdventureWorks: REVERSE(REVERSE("AdventureWorks"))
}
[
{
"reverseAdventureWorks": "skroWerutnevdA",
"reverseAdventureWorksBack": "AdventureWorks",
"doubleReverseAdventureWorks": "AdventureWorks"
}
]
Remarks
- This function doesn't use the index.