pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Why doesn't this work
Date: Tue, 15 Jan 2013 08:04:23 -0700
Message-ID: <50F56FF7.9000701@gmail.com> (raw)
In-Reply-To: <1358250600.37670.YahooMailNeo@web162804.mail.bf1.yahoo.com>
References: <1358250600.37670.YahooMailNeo@web162804.mail.bf1.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

On 01/15/2013 04:50 AM, Barbara Woolums wrote:
> I am running a query like so
>
> SELECT id FROM image WHERE image='demo-harvey wallbanger.jpg'
>
> It returns nothing
>
> My table looks like this
>
> "demo-820.jpg";1
> "demo-lemon-mousse-1.jpg";2
> "demo-pumpkinchaibars.jpg";3
> "demo-Lolly-Shop.jpg";4
> "demo-scan0001.jpg";5
> "demo-cherry-chocolate-mousse-pie.jpg";6
> "demo-harvey wallbanger.jpg
> ";7
>
> Cheers
> Barbara

Try select id from image where image.image ~'demo-harvey wallbanger';

If you example data is correct, I think you have a line-feed char after 
'.jpg'




-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (4+ messages)

Message-ID: <50F56FF7.9000701@gmail.com>
Permalink:  ../50F56FF7.9000701@gmail.com/
Also on:    postgresql.org/message-id/50F56FF7.9000701@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: robjsargent@gmail.com
  Subject: Re: Why doesn't this work
  In-Reply-To: <50F56FF7.9000701@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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