0
我有这些查询:如何在IN语句中使用另一个查询?
Select CODE
FROM TABLE.STATUS
WHERE REFERENCE IN ('423',{variable})
Select Sec_Code
From Table.Sec_status
Where Sec_reference = 'ABC'
第二查询返回,我想插入{}可变的部分我想35个三位数代码:
Select CODE
FROM TABLE.STATUS
WHERE REFERENCE IN ('423',(Select Sec_Code
From Table.Sec_status
Where Sec_reference = 'ABC'))
但是出错了。谢谢!