尝试将转义字符插入表中会导致警告。
例如:
create table EscapeTest (text varchar(50));
insert into EscapeTest (text) values ('This is the first part \n And this is the second');
产生警告:
WARNING: nonstandard use of escape in a string literal
(使用 PSQL 8.2)
有谁知道如何解决这个问题?