Re: Case Sensitive "WHERE" Clauses?

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Case Sensitive "WHERE" Clauses?
Дата
Msg-id 5.1.0.14.0.20020927090709.02f125d0@cooee.squiz.net
обсуждение исходный текст
Ответ на Re: Case Sensitive "WHERE" Clauses?  (Ian Barwick <barwick@gmx.net>)
Ответы Re: Case Sensitive "WHERE" Clauses?
Список pgsql-sql

>On Thursday 26 September 2002 19:54, Jordan Reiter wrote:
> > Are string comparisons in postgresql case sensitive?
>
>Yes, unless you specify otherwise.
>
>Are you sure you are using the right database? I can
>reproduce similar results, but only like this:

You're using MySQL in these examples .. not Postgres :)

(FYI - Just tried this with 7.3beta and I got the same results as everyone 
else .. it is case sensitive).

Chris.

>mysql>  create temporary table foo (ch char(2), vc varchar(2));
>Query OK, 0 rows affected (0.12 sec)
>
>mysql> insert into foo values ('aa','AA');
>Query OK, 1 row affected (0.02 sec)
>
>mysql> select * from foo where ch = 'aa';
>+------+------+
>| ch   | vc   |
>+------+------+
>| aa   | AA   |
>+------+------+
>1 row in set (0.01 sec)
>
>mysql> select * from foo where ch = 'AA';
>+------+------+
>| ch   | vc   |
>+------+------+
>| aa   | AA   |
>+------+------+
>1 row in set (0.00 sec)
>
>mysql> select * from foo where vc = 'aa';
>+------+------+
>| ch   | vc   |
>+------+------+
>| aa   | AA   |
>+------+------+
>1 row in set (0.00 sec)
>



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: FW: query problem "server sent binary data ... without
Следующее
От: Ian Barwick
Дата:
Сообщение: Re: Case Sensitive "WHERE" Clauses?