Operation eq with varchar - Mailing list pgsql-general

From t.ngockhoi@bpf.vnu.com
Subject Operation eq with varchar
Date
Msg-id C1256B28.002F7341.00@bpfn01.bpf.vnu.com
Whole thread Raw
Responses Re: Operation eq with varchar
Re: Operation eq with varchar
List pgsql-general


HI ALL,

I don't no why i can't compare varchar with string const :

CREATE TABLE XXX (
     id   integer,
     stvarchar varchar
) ;


SELECT * FROM XXX WHERE stvarchar = 'somestring' ;

I can only use like operator :

SELECT * FROM XXX WHERE stvarchar like 'somestring%' ;

Any body know why ?

I have the 7.1.3 verion in redhat 7.2


Best Regards,
Ngoc-Khoi TO.




pgsql-general by date:

Previous
From: Matt Sauve-Frankel
Date:
Subject: Re: More on Too Many Open Files... NetBSD
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Operation eq with varchar