String literals and escape characters in postgresql

后端 未结 5 547
灰色年华
灰色年华 2020-11-28 07:55

Attempting to insert an escape character into a table results in a warning.

For example:

create table EscapeTest (text varchar(50));

insert into Es         


        
5条回答
  •  [愿得一人]
    2020-11-28 08:33

    The warning is issued since you are using backslashes in your strings. If you want to avoid the message, type this command "set standard_conforming_strings=on;". Then use "E" before your string including backslashes that you want postgresql to intrepret.

提交回复
热议问题