我可以在 sql 中将 FOR XML PATH 用于 int 列吗?这样我就可以将其用于以下用途:
declare @contactIds = (select id from contacts)
然后像这样使用它:
select * from calls where contactId in (@contactIds)
可能吗 ?
我可以在 sql 中将 FOR XML PATH 用于 int 列吗?这样我就可以将其用于以下用途:
declare @contactIds = (select id from contacts)
然后像这样使用它:
select * from calls where contactId in (@contactIds)
可能吗 ?