摘要:
好记性不如烂笔头,问题虽小,但有时但经常碰到。单引号用两个单引号替换,如:string content = "'中国'";content = content.Replace("'","''");string sql = "update News set Content='"+content+"'" where NewsId=1"; 执行此sql语句就不会出现错误。 阅读全文
posted @ 2011-07-21 16:50
寒江独钓客
阅读(548)
评论(1)
推荐(0)
浙公网安备 33010602011771号