Re: > and >= give the same result - Mailing list pgsql-novice

From Jean-Yves F. Barbier
Subject Re: > and >= give the same result
Date
Msg-id 20111229170408.4d2b5a7e@anubis.defcon1
Whole thread Raw
In response to Re: > and >= give the same result  (Frank Bax <fbax@sympatico.ca>)
Responses Re: > and >= give the same result
List pgsql-novice
On Thu, 29 Dec 2011 10:39:41 -0500
Frank Bax <fbax@sympatico.ca> wrote:

> > Oops, I'm read too fast; but it dont change my PB:
> > SELECT * FROM table WHERE col>  'Y%' still returns y%&  Y%
> >
>
> NO.  It does not.
>
> create table barbier (col varchar);
> insert into barbier values ('y%');
> insert into barbier values ('z%');
> insert into barbier values ('Y%');
>   select * from barbier where col>'Y%';
>   col
> -----
>   y%
>   z%
> (2 rows)

Do you mean that>'Y%' is taken as a literal and don't
develop as Y* (contrary to LIKE 'Y%')?

Meaning 'Y%' was for me: 'Yahoo', 'Ybsd', 'Ycommerce', 'Ymail', etc

--
Damn, I need a Coke!
        -- Dr. William DeVries
        [after implanting the first artificial human heart]

pgsql-novice by date:

Previous
From: Frank Bax
Date:
Subject: Re: > and >= give the same result
Next
From: Thomas Kellerer
Date:
Subject: Re: > and >= give the same result