Oracle pl-sql 转义字符(用于“'") [英] Oracle pl-sql escape character (for a " ' ")
本文介绍了Oracle pl-sql 转义字符(用于“'")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试在 oracle 中执行 INSERT
语句时,出现 SQL 错误:ORA-00917:缺少逗号
错误,因为有一个值为 Alex 的Tea Factory
在我的 INSERT
语句中.
When I am trying to execute INSERT
statement in oracle, I got SQL Error: ORA-00917: missing comma
error because there is a value as Alex's Tea Factory
in my INSERT
statement.
我怎样才能转义 '
?
推荐答案
要转义,请将引号加倍:
To escape it, double the quotes:
INSERT INTO TABLE_A VALUES ( 'Alex''s Tea Factory' );
这篇关于Oracle pl-sql 转义字符(用于“'")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文