We have a table with about 770,000 rows, in which only a few hundred are used! Can I use the standard statement, such as:
select * into prod_v2 where id = "29830" or "28392" or "23892" ..........
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d imagine this would work, though if your listing of IDs is a long one, you might want to chose another criteria for selecting information from one table to another – else there could be a pretty major performance hit as it goes through your table, trying to match your OR statement for every…single…record…in…that…table.