Sql server in query problem

the problem now is how to optimize the array of in when there is a large amount of data, or if there is any way to replace in?.

a.sid IN (
        93923001,
        93922999,
        93922997,
        93922996,
        93922982,
        93922963,
        93922960,
        93922958,
        93922952,
        93922889,

SELECT
    a.sid,
    s.ReportStatus
FROM
    TransferSMS a
RIGHT JOIN SubmitSMS

use a small table with a large table query

Apr.24,2021

insert that string of data into a temporary table , and then perform an inner join operation to query

.
Menu