Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
APPLIES TO:
NoSQL
Returns a boolean indicating whether the first string expression matches the second.
StringEquals(<string_expr_1>, <string_expr_2> [, <boolean_expr>])
Description | |
---|---|
string_expr_1 |
The first string expression to compare. |
string_expr_2 |
The second string expression to compare. |
boolean_expr (Optional) |
An optional boolean expression for ignoring case. When set to true , this function performs a case-insensitive search. If not specified, the default value is false . |
Returns a boolean expression.
The following example checks if abc
matches abc
and if abc
matches ABC
.
SELECT VALUE {
compareSameCase: STRINGEQUALS("AdventureWorks", "AdventureWorks"),
compareDifferentCase: STRINGEQUALS("AdventureWorks", "adventureworks"),
compareIgnoreCase: STRINGEQUALS("AdventureWorks", "adventureworks", true)
}
[
{
"compareSameCase": true,
"compareDifferentCase": false,
"compareIgnoreCase": true
}
]
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now