01|02|03| ====> (01,02,03)用于in id数组这种查询方式
//01|02|03| ====> (01,02,03)
string s = "(";
for (int i = 0; i < countryid.Split('|').Length; i++)
{
if (i > 0 && i < countryid.Split('|').Length-1)
{
s += ",";
}
s +=countryid.Split('|')[i];
}
s += ")";
string.Format(" CountryID in {0} ", s)
用心写代码,不辜负程序员之名。