equal and like - Mailing list pgsql-general

From Schwéger Gábor
Subject equal and like
Date
Msg-id 2436.89.133.144.132.1228415414.squirrel@webmail.schweger.hu
Whole thread Raw
Responses Re: equal and like  (Bill Moran <wmoran@collaborativefusion.com>)
Re: equal and like  (Quan Zongliang <quanzongliang@gmail.com>)
List pgsql-general
Hi List,

This is my first post to this list.
Our database moved to a larger partition.
And now I have a problem with a select query:
db=# SELECT id, login FROM u WHERE login LIKE 'bellamarth';
   id   |    login
--------+-------------
 173002 | bellamarth
(1 row)

db=# SELECT id, login FROM u WHERE login = 'bellamarth';
 id | login
----+-------
(0 rows)

The type of login is text.
What is the problem with the equal sign?
psql server version: 8.2.11

Could you help me?

Gabor



pgsql-general by date:

Previous
From: "Tony Linden"
Date:
Subject: q query about a bug.
Next
From: "Filip Rembiałkowski"
Date:
Subject: Re: psql verbose mode