From: Rolf Johansson <rojo@nocrew.org>
To: pgsql-sql@postgresql.org
Subject: sort order with < & > in varchar fields
Date: 17 Jan 2001 14:39:46 +0100
Message-ID: <7jhf2yfgbh.fsf@junk.nocrew.org> (raw)
It is possible to extract rows in a table using
SELECT name FROM table WHERE name >= 'Bergman'.
The problem I have is that I get names like "Berg, Paul"
with this query, and I don't want that.
Is there documentation on how >= and <= works with varchar
fields? Does pg count in the "," character or ignore it?
And so on...
Version is 7.0.1.
/Rolf
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: rojo@nocrew.org
Subject: Re: sort order with < & > in varchar fields
In-Reply-To: <7jhf2yfgbh.fsf@junk.nocrew.org>
References: <7jhf2yfgbh.fsf@junk.nocrew.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