I want to execute a sqlite query:
select * from table_name where id in (23,33,33,55,43,23);
if any value is appearing in the array twice, cursor should contain the corresponding row twice.
I want to execute a sqlite query:
select * from table_name where id in (23,33,33,55,43,23);
if any value is appearing in the array twice, cursor should contain the corresponding row twice.
Yes run a for loop or use a join:
SELECT T.*
FROM (
SELECT 23 AS id
UNION SELECT 33
...
UNION SELECT 23) AS list
LEFT JOIN table_name T ON list.id = T.id
Based on this answer https://stackoverflow.com/a/372991/360211