From: Josh Berkus <josh@agliodbs.com>
To: guard <guard@ficnet.net>
To: pgsql-sql@postgresql.org
Subject: Re: can't update 'c:\windows'
Date: Tue, 23 Oct 2001 11:33:54 -0700
Message-ID: <web-490710@davinci.ethosmedia.com> (raw)
In-Reply-To: <9r0o0t$k6t$1@news.tht.net>
Guard,
First, this kind of beginner question is more appropriate for the NOVICE
list.
> IF update table set field='c:\windows'
> but
>
> c:\windows -> c:windows
That's because "\" is the Unix escape character. If I were to want to
save "O'Reilly", for example, I could:
UPDATE table SET name = 'O\'Reilly';
Since you want to save an actual backslash, do this:
UPDATE table SET field = 'C:\\windows';
In your interface code, you may which to add a function that doubles
your backslashes.
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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: josh@agliodbs.com, guard@ficnet.net
Subject: Re: can't update 'c:\windows'
In-Reply-To: <web-490710@davinci.ethosmedia.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