SQL: efficiently look up many IDs coming from outside the DB -
I need to see thousands of rows by ID, but id comes from outside DB, so I can not get it as From other tables:
SELECT * from something_bating where id (selection some_other_table from where some condition is known)
Is something better than this:
SELECT * where_baby_baby_bab ID ('1001', '1002', '1003', ...)
How do I make such parameters Can I query Number of ID is not fixed? Or do I add a big string together every time?
(I am using Siklit, BTW, but I am also curious about other databases.)
I will create a temporary table with variable values and "in select ".
Comments
Post a Comment