Re: Escaped Characters (Quotes, etc...)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: operationsengineer1(at)yahoo(dot)com
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Escaped Characters (Quotes, etc...)
Date: 2005-05-26 21:52:44
Message-ID: 8787.1117144364@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

<operationsengineer1(at)yahoo(dot)com> writes:
> when i run a pgadmin3 query and select * from a table,
> shouldn't the " mark appear like this : \" ?

No, what for?

You have to escape quotes that are going to be put into a string literal
in a SQL command string. But data coming out of the server is not in a
SQL command string and so it doesn't need that layer of quoting.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Sadie D. Adams, V 2005-05-27 00:56:39 Industry News
Previous Message Sugrue, Sean 2005-05-26 21:52:23 Explain