Re: Syntax Error?

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pdxpug(at)postgresql(dot)org
Subject: Re: Syntax Error?
Date: 2011-02-03 18:18:32
Message-ID: 1296757113.11513.848.camel@jdavis
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pdxpug

On Thu, 2011-02-03 at 10:10 -0800, Rich Shepard wrote:
> jerrittwq=# select * from monitor where location = 'GW-24';

> jerrittwq=# select distinct location from monitor;
> location
> ------------------
> <snip>
> 'OMW-9'
> 'GW-24'
> 'FC-2'
>

Is it possible that the values themselves have the quotation marks?

Maybe try:
select * from monitor where location = '''GW-24''';

Or perhaps there is some kind of whitespace or something.

Regards,
Jeff Davis

In response to

Responses

Browse pdxpug by date

  From Date Subject
Next Message Ewan, Michael 2011-02-03 18:20:44 Re: Syntax Error?
Previous Message Rich Shepard 2011-02-03 18:10:00 Syntax Error?