Hai bisogno di variabile tabella o tabella temporanea .
DECLARE @RECEIPTIDS TABLE(val VARCHAR(100))
Insert into @RECEIPTIDS values ('R00013'), ('R00028')
Puoi usarlo in IN come
where field IN (Select val from @RECEIPTIDS)
Hai bisogno di variabile tabella o tabella temporanea .
DECLARE @RECEIPTIDS TABLE(val VARCHAR(100))
Insert into @RECEIPTIDS values ('R00013'), ('R00028')
Puoi usarlo in IN come
where field IN (Select val from @RECEIPTIDS)