一、
sb.Length = sb.Length - 1;
二、
stringBuilder.Remove(stringBuilder.ToString().LastIndexOf(','), 1);

三、
strSql.Remove(strSql.Length-1, 1);



String

string strSql="sadsad,";
strSql = content.Substring(0, content.Length - 1);

----------------
新增一个 去除 带双引号的
如"\"哈哈哈\""
strSql.Replace("\"", "");

相关文章: