在插入语句前加N就行了
sb.Append(string.Format("update chapter set [content]=N'{0}' where Id ={1} ;",chapter.content.Replace('\'',' '),chapter.Id));
在插入语句前加N就行了
sb.Append(string.Format("update chapter set [content]=N'{0}' where Id ={1} ;",chapter.content.Replace('\'',' '),chapter.Id));
转载于:https://www.cnblogs.com/ProDoctor/p/7218365.html