如何运行包含(')的查询?例如:选择*来自A,其中B喜欢'aa'bb'?

Gol*_*old 0 sql oracle10g

如何运行包含(')的查询?

例如:

select * from A where B like 'aa'bb' 
Run Code Online (Sandbox Code Playgroud)

使用Oracle 10g

提前致谢

Ed *_*per 7

通过添加另一个引用来逃避单引号.尝试:

select * from A where B like 'aa''bb'