Oracle pl-sql转义字符(对于“”) [英] Oracle pl-sql escape character (for a " ' ")

查看:178
本文介绍了Oracle pl-sql转义字符(对于“”)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在oracle中执行 INSERT 语句时,我得到 SQL错误:ORA-00917:缺少逗号错误,因为我的 INSERT 语句中的值为$ code> Alex's Tea Factory

When i'm 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆