Apologies if this should be fairly obvious! If I have a cell array of keys - how should I best query these against a database?
For example if I have the cell array:
Names = { 'Jon', 'Peter', 'Paul' };
Do I have to write the SQL in the form:
select *
from x
where name = 'Jon' or name = 'Peter' or name = 'Paul';
Or is there some way of writing it of the form:
select *
from x
where name = {Names};
Whilst I can write a function to generate the where clause, this feels far from ideal!
Any help would be greatly appreciated.