数组参数在SQL in查询中的拼接

----string.Join("','", Jsonstr.Split(','))

 

string SQLstr = string.Format(@"SELECT *  from table where id in('{0}'))", string.Join("','", MeterJson.Split(',')));

  

posted @ 2022-03-18 15:27  薛李淑月  阅读(362)  评论(0编辑  收藏  举报