Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
表结构:
title { name varchar(100) }
如果我尝试插入以下查询
insert into wikititle values('Men's');
我收到错误引用的字符串未正确终止。
即使我使用 set escape on make it as
insert into wikititle values('Men\'s');
并插入我收到此错误。
我在 oracle 11i sql plus 中执行所有这些执行。
在 Oracle 中,您需要将引号加倍:
insert into wikititle values('Men''s')
这是sqlfiddle 上的测试查询的链接。
select q'{Men's}' from dual; select q'|Men's|' from dual; select q'"Men's"' from dual;