string JH = string.Format("('{0}')", vApplication.F_JH.Trim(',').Replace(",", "','"));
string.Format("select * from tb_jh where jh in ('{0}')", JHs.Trim(',').Replace(",", "','"));
要求传递过来的字符串格式为:xxxx,xxx,
string JH = string.Format("('{0}')", vApplication.F_JH.Trim(',').Replace(",", "','"));
string.Format("select * from tb_jh where jh in ('{0}')", JHs.Trim(',').Replace(",", "','"));
要求传递过来的字符串格式为:xxxx,xxx,
转载于:https://my.oschina.net/u/2446847/blog/1581889