StrSqlLines = "Select * From dbo.SqlDtaToCreate WHERE DtaLineAccountToDebit = '" + Straccref + "' and DtaLineCode IN('" + joined + "')";
执行此查询时出现错误
Conversion failed when converting the varchar value '116743,116744,116745' to data type int.
但是查询在 SQL 中运行良好
select * from SqlDtaToCreate where DtaLineAccountToDebit='123.567U' and DtaLineCode IN('116745','116746','116747')