SQL DDL选项的值需要单引号应该如何解决?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SQL DDL选项的值需要单引号应该如何解决?

Luna Wong
create table source (
id int
) with (
type='jdbc',
username='us',
password='ab'c'
);

例如上面DDL密码的值需要 ' 单引号。这种应该怎么解决?
Reply | Threaded
Open this post in threaded view
|

Re: SQL DDL选项的值需要单引号应该如何解决?

zh0122
create table source (
id int
) with (
type='jdbc',
username='us',password='ab\'c'
);


Luna Wong <[hidden email]> 于2021年5月27日周四 下午4:02写道:

> create table source (
> id int
> ) with (
> type='jdbc',
> username='us',
> password='ab'c'
> );
>
> 例如上面DDL密码的值需要 ' 单引号。这种应该怎么解决?
>