尝试将转义字符插入表中会导致警告.
例如:
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)
有谁知道怎么解决这个问题?