Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9O165P59537 for ; Tue, 23 Oct 2001 21:06:05 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f9O0rhm59028 for pgsql-sql@postgresql.org; Tue, 23 Oct 2001 20:53:43 -0400 (EDT) (envelope-from news) From: "guard" X-Newsgroups: comp.databases.postgresql.sql Subject: Re: can't update 'c:\windows' Date: Wed, 24 Oct 2001 09:00:55 +0800 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 44 Message-ID: <9r53em$1pkh$1@news.tht.net> References: X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-sql@postgresql.org X-Archive-Number: 200110/345 X-Sequence-Number: 5298 thanks. your reply -- ""Josh Berkus"" ¼¶¼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