Re: Need concrete "Why Postgres not MySQL" bullet list

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Need concrete "Why Postgres not MySQL" bullet list
Дата
Msg-id 00d201c36785$8661bf10$2800a8c0@mars
обсуждение исходный текст
Ответ на Need concrete "Why Postgres not MySQL" bullet list  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-advocacy
> Oh dear, this excludes my usual one-item "things to think about
> when considering what database to use":
>
> * PROPER USAGE OF NULL
>
> mysql> select * from ai_test where id is null;
> +----+-------+
> | id | txt   |
> +----+-------+
> |  1 | hello |
> +----+-------+
> 1 row in set (0.00 sec)
>
> ;-). I digress. Off the top of my head, in no particular order:

You're not trying hard enough:

mysql> create table test3 (a date);
Query OK, 0 rows affected (0.00 sec)

mysql> insert into test3 values (-1);
Query OK, 1 row affected (0.01 sec)

mysql> insert into test3 values ('1996-02-31');
Query OK, 1 row affected (0.00 sec)

mysql> insert into test3 values ('1996-67-31');
Query OK, 1 row affected (0.00 sec)

mysql> select * from test3;
+------------+
| a          |
+------------+
| 0000-00-00 |
| 1996-02-31 |
| 0000-00-00 |
+------------+
3 rows in set (0.00 sec)

I find that even funnier...

Chris


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

Предыдущее
От: Anastasios Hatzis
Дата:
Сообщение: Re: Need concrete "Why Postgres not MySQL" bullet
Следующее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: Need concrete "Why Postgres not MySQL" bullet list