Hi, I have a list of IDs which I need to fetch from the database. I currently use a query of the form:
SELECT * FROM TABLE WHERE ID IN (?,?,?,?,?,....) I construct the number of parameters dynamically from Java and assign the IDs when executing this prepared statement. However, this technique does not maintain the order. I can, of course, sort the rows after fetching. However, for the sake of performance, I would prefer a better solution. One possible approach is to fetch each row individually. I'm not sure if this is better. Any help would be appreciated. Thanks, Zviki --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/h2-database?hl=en -~----------~----~----~----~------~----~------~--~---
