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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c10124-32021.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c10124-32021.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?