← in operator page · comparison/in/sc_set/member_of_a_set
pandas ✅ · DuckDB ✅
SC_1 in { 1, 2, 3 } with SC_1 = 1: a scalar that is an element of a set literal.
Element of, semantics for scalar operations: "1 in { 1, 2, 3 } returns true".
SC_r = true, a Boolean: 1 is an element of the set.
SC_r := SC_1 in { 1, 2, 3 };
| SC_1 |
|---|
| 1 |
{
"scalars": [
{"name": "SC_1", "type": "Integer"}
]
}
{
"scalars": [
{"name": "SC_r", "type": "Boolean", "value": true}
]
}