Search Postgresql Archives

copy with escape

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have data that I'm running through pg_escape_sting in php and then adding to stdin for a copy command.  The problem is "O'reilly" is being changed to "O''Reilly" in the string and then in the db.  I saw with the copy command I can specify the escape but it isn't working for me.  Should this command fix this double 'single' quote issue when I put it in the db?  And what is the proper syntax?

COPY mytable FROM stdin with escape



Thanks!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux