Erik van Linstee
2015-03-20 09:14:32 UTC
Hi,
I am new to soci and have been trying out some of its features. So far
so good.
I was wondering what would be a good way to create a compound or
statement (or and :-) from a vector of values. Like so:
vector<int> value;
select * from SomeTable where SomeColumn is :value[1] or SomeColumn
is :value[2] or .. SomeColumn is :value[n], use(value)
I have not been able to find an example yet and the documentation did
not yet give me an answer either.
Sorry if I have overlooked the obvious.
Erik
I am new to soci and have been trying out some of its features. So far
so good.
I was wondering what would be a good way to create a compound or
statement (or and :-) from a vector of values. Like so:
vector<int> value;
select * from SomeTable where SomeColumn is :value[1] or SomeColumn
is :value[2] or .. SomeColumn is :value[n], use(value)
I have not been able to find an example yet and the documentation did
not yet give me an answer either.
Sorry if I have overlooked the obvious.
Erik