SQL In Clause with 20000 values
问题 I have a xls with 20000 IDs I need to extract the rows of a table that have these IDs in Col1 Is there a clever way to do this in Oracle SQL ? I only have a read access to this db. I thought to slice the 20000 IDs, in order to put the first 1000 in a variable p_list1 , the next 1000 in a variable p_list2, ect and use a IN clause and union to get the whole result But I'm not used to use paramters in my query. Could you please review it ? Thanks in advance for your help DECLARE p_list1 VARCHAR2