pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedcan't update 'c:\windows'
4+ messages / 3 participants
[nested] [flat]
* can't update 'c:\windows'
@ 2001-10-22 09:14 guard <guard@ficnet.net>
2001-10-23 18:33 ` Re: can't update 'c:\windows' Josh Berkus <josh@agliodbs.com>
2001-10-23 22:14 ` Re: can't update 'c:\windows' Roberto Mello <rmello@cc.usu.edu>
0 siblings, 2 replies; 4+ messages in thread
From: guard @ 2001-10-22 09:14 UTC (permalink / raw)
To: pgsql-sql
dear all
IF update table set field='c:\windows'
but
c:\windows -> c:windows
--
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: can't update 'c:\windows'
2001-10-22 09:14 can't update 'c:\windows' guard <guard@ficnet.net>
@ 2001-10-23 18:33 ` Josh Berkus <josh@agliodbs.com>
2001-10-24 01:00 ` Re: can't update 'c:\windows' guard <guard@ficnet.net>
1 sibling, 1 reply; 4+ messages in thread
From: Josh Berkus @ 2001-10-23 18:33 UTC (permalink / raw)
To: guard <guard@ficnet.net>; pgsql-sql
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: can't update 'c:\windows'
2001-10-22 09:14 can't update 'c:\windows' guard <guard@ficnet.net>
2001-10-23 18:33 ` Re: can't update 'c:\windows' Josh Berkus <josh@agliodbs.com>
@ 2001-10-24 01:00 ` guard <guard@ficnet.net>
0 siblings, 0 replies; 4+ messages in thread
From: guard @ 2001-10-24 01:00 UTC (permalink / raw)
To: pgsql-sql
thanks. your reply
--
""Josh Berkus"" <josh@agliodbs.com> ¼¶¼g©ó¶l¥ó·s»D
:web-490710@davinci.ethosmedia.com...
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: can't update 'c:\windows'
2001-10-22 09:14 can't update 'c:\windows' guard <guard@ficnet.net>
@ 2001-10-23 22:14 ` Roberto Mello <rmello@cc.usu.edu>
1 sibling, 0 replies; 4+ messages in thread
From: Roberto Mello @ 2001-10-23 22:14 UTC (permalink / raw)
To: pgsql-sql
On Mon, Oct 22, 2001 at 05:14:32PM +0800, guard wrote:
> dear all
>
> IF update table set field='c:\windows'
> but
>
> c:\windows -> c:windows
Errr. Some context please? My crystal ball is still getting fixed :)
-Roberto
--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
Roberto Mello - Computer Science, USU - http://www.brasileiro.net
http://www.sdl.usu.edu - Space Dynamics Lab, Developer
Windows is not the problem. Ignorance is the problem.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-10-24 01:00 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-22 09:14 can't update 'c:\windows' guard <guard@ficnet.net>
2001-10-23 18:33 ` Josh Berkus <josh@agliodbs.com>
2001-10-24 01:00 ` guard <guard@ficnet.net>
2001-10-23 22:14 ` Roberto Mello <rmello@cc.usu.edu>
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