pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shoaib Mir <shoaibmir@gmail.com>
To: Ranieri Mazili <ranieri.oliveira@terra.com.br>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Inserting a path into Database
Date: Mon, 4 Jun 2007 16:19:11 -0400
Message-ID: <bf54be870706041319r661ef534tc48ea1cc6b3a56c9@mail.gmail.com> (raw)
In-Reply-To: <466471C8.40506@terra.com.br>
References: <466471C8.40506@terra.com.br>

If you are on 8.1 you can use double qoutes ( 'C:\\Program Files\\My
program' ) on in 8.2 you can use the new "backslash_quote (string)"
setting.

You can find help on "backslash_quote (string)" at -->
http://www.postgresql.org/docs/current/static/runtime-config-compatible.html

--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 6/4/07, Ranieri Mazili <ranieri.oliveira@terra.com.br> wrote:
>
> Hello,
>
> I need to insert a path into a table, but because "\" I have a error by
> postgres, so how can I insert a path like bellow into a table:
>
> insert into production values ('C:\Program Files\My program');
>
> I appreciate any help
> Thanks
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

view thread (4+ messages)  latest in thread

Message-ID: <bf54be870706041319r661ef534tc48ea1cc6b3a56c9@mail.gmail.com>
Permalink:  ../bf54be870706041319r661ef534tc48ea1cc6b3a56c9@mail.gmail.com/
Also on:    postgresql.org/message-id/bf54be870706041319r661ef534tc48ea1cc6b3a56c9@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: shoaibmir@gmail.com, ranieri.oliveira@terra.com.br, pgsql-general@postgresql.org
  Subject: Re: [SQL] Inserting a path into Database
  In-Reply-To: <bf54be870706041319r661ef534tc48ea1cc6b3a56c9@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox