GanZhiXiong / ganzhixiong.github.io

ganzhixiong-github-io.vercel.app
0 stars 0 forks source link

如何正确的将字符串数组传给in - 干志雄的博客 #35

Open GanZhiXiong opened 3 years ago

GanZhiXiong commented 3 years ago

https://ganzhixiong.com/p/5a8bb790/

问题C#使用join将数组的元素用逗号分隔为字符串传递给SQL Server存储过程要么报错,要么查询的表格结果为0条数据。 C#中的代码如下: 1234DataTable dataTable = DbHelperSQL.RunProcedure("proc_Data_GetUploadInfo", new IDataParameter[] {