Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

copy with escape



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!

Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group