You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: StringEquals in Azure Cosmos DB query language
3
-
description: Learn about how the StringEquals SQL system function in Azure Cosmos DB returns a Boolean indicating whether the first string expression matches the second
4
-
author: seesharprun
2
+
title: StringEquals
3
+
titleSuffix: Azure Cosmos DB for NoSQL
4
+
description: An Azure Cosmos DB for NoSQL system function that returns a boolean indicating whether two strings are equivalent.
Optional value for ignoring case. When set to true, StringEquals does a case-insensitive search. When unspecified, this value is false.
34
-
28
+
29
+
|| Description |
30
+
| --- | --- |
31
+
|**`string_expr_1`**| The first string expression to compare. |
32
+
|**`string_expr_2`**| The second string expression to compare. |
33
+
|**`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`. |
34
+
35
35
## Return types
36
-
37
-
Returns a Boolean expression.
38
-
36
+
37
+
Returns a boolean expression.
38
+
39
39
## Examples
40
-
41
-
The following example checks if "abc" matches "abc" and if "abc" matches "ABC."
42
-
43
-
```sql
44
-
SELECT STRINGEQUALS("abc", "abc", false) AS c1, STRINGEQUALS("abc", "ABC", false) AS c2, STRINGEQUALS("abc", "ABC", true) AS c3
45
-
```
46
-
47
-
Here's the result set.
48
-
49
-
```json
50
-
[
51
-
{
52
-
"c1": true,
53
-
"c2": false,
54
-
"c3": true
55
-
}
56
-
]
57
-
```
40
+
41
+
The following example checks if "abc" matches "abc" and if "abc" matches "ABC."
0 commit comments