Re: Case Sensitive "WHERE" Clauses?

Поиск
Список
Период
Сортировка
От Dan Langille
Тема Re: Case Sensitive "WHERE" Clauses?
Дата
Msg-id 20020926165736.J30730-100000@m20.unixathome.org
обсуждение исходный текст
Ответ на Case Sensitive "WHERE" Clauses?  (Jordan Reiter <jordan@breezing.com>)
Список pgsql-sql
On Thu, 26 Sep 2002, Jordan Reiter wrote:

> Are string comparisons in postgresql case sensitive?

Yes, AFAIK.

I disagree with your comments and recommendations posted at
http://www.postgresql.org/idocs/index.php?datatype-character.html because
my testing shows that varying text and fixed test comparisons are both case
sensitive.

testing=# \d casetest         Table "casetest"Column |     Type      | Modifiers
--------+---------------+-----------name   | text          |city   | character(10) |


testing=# select * from casetest;name |    city
------+------------Dan  | Ottawa
(1 row)


testing=# select * from casetest where name = 'Dan';name
------Dan
(1 row)

testing=# select * from casetest where name = 'dan';name
------
(0 rows)

testing=# select * from casetest where city = 'ottawa';name | city
------+------
(0 rows)



В списке pgsql-sql по дате отправления:

Предыдущее
От: Dan Langille
Дата:
Сообщение: Re: Case Sensitive "WHERE" Clauses?
Следующее
От: Peter Atkins
Дата:
Сообщение: Passing array to PL/SQL and looping