From: Leif Biberg Kristensen <leif@solumslekt.org>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: Why doesn't this work
Date: Tue, 15 Jan 2013 12:58:18 +0100
Message-ID: <201301151258.18171.leif@solumslekt.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Tirsdag 15. januar 2013 12.50.00 skrev Barbara Woolums :
> 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
It seems like you've got a newline at the end of the first field of the last
row.
Does it work if you change the query to
SELECT id FROM image WHERE image LIKE '%demo-harvey wallbanger.jpg%'
?
regards, Leif
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
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: leif@solumslekt.org
Subject: Re: Why doesn't this work
In-Reply-To: <201301151258.18171.leif@solumslekt.org>
* 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