declare @lkaklf as varchar(Max)
Select ss.Data from SplitString('14,72', ',') as ss
Select @lkaklf = CONVERT(varchar, COALESCE( + @lkaklf + ',', '') + '''' + Data + '''') From
(
Select Data from SplitString('14,72', ',')
)de
select @lkaklf
print @lkaklf
Select * from LPO Where CONVERT(varchar, LPO.LocalPurchaseOrderId) in (@lkaklf)
@lkalf 值是在消息中打印但未进入选择查询...为什么?