在插入语句前加N就行了

  sb.Append(string.Format("update chapter set [content]=N'{0}'  where Id ={1} ;",chapter.content.Replace('\'',' '),chapter.Id));

  

posted on 2017-07-21 16:24  xuelei被占用了  阅读(466)  评论(0)    收藏  举报