Re: can't update 'c:\windows'

From: "guard" <guard(at)ficnet(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: can't update 'c:\windows'
Date: 2001-10-24 01:00:55
Message-ID: 9r53em$1pkh$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


thanks. your reply

--

""Josh Berkus"" <josh(at)agliodbs(dot)com> glsD
:web-490710(at)davinci(dot)ethosmedia(dot)com(dot)(dot)(dot)
> 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(at)agliodbs(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Dado Feigenblatt 2001-10-24 02:18:10 Re: oid's in views.
Previous Message Roberto Mello 2001-10-23 22:14:39 Re: can't update 'c:\windows'