相关疑难解决方法(0)

postgresql中的字符串文字和转义字符

尝试将转义字符插入表中会导致警告.

例如:

create table EscapeTest (text varchar(50));

insert into EscapeTest (text) values ('This is the first part \n And this is the second');
Run Code Online (Sandbox Code Playgroud)

产生警告:

WARNING:  nonstandard use of escape in a string literal
Run Code Online (Sandbox Code Playgroud)

(使用PSQL 8.2)

有谁知道怎么解决这个问题?

string postgresql escaping

104
推荐指数
3
解决办法
24万
查看次数

标签 统计

escaping ×1

postgresql ×1

string ×1