Categories
How to get several records with different id with one request?
Hello. There is an id array: String id[] = {4, 23, 43}; How to get data for these id with one query to the database? or still have to do 3 calls? Tell me please
String id[] = {4, 23, 43};
Answer the question
In order to leave comments, you need to log in
SELECT * FROM tablename WHERE id in (4, 23, 43)
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question