现在的位置: 首页 > 综合 > 正文

关于sql语句中的单引号(‘ ) 和双引号(“) 的处理问题?

2018年05月17日 ⁄ 综合 ⁄ 共 182字 ⁄ 字号 评论关闭

原文链接:http://bbs.csdn.net/topics/70045444

字符串中的',一律用两个''表示就行了

create table test(

id integer primary key autoincrement,

var text

);

insert into 

test(id,var) 

values(null, 'he''s brother --"The Dragon"');

抱歉!评论已关闭.