Re: Scheme conversion MySQL to PGSQL

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: Scheme conversion MySQL to PGSQL
Дата
Msg-id 40A1A9E2-75C6-4CDB-A786-402D03962CD0@gmail.com
обсуждение исходный текст
Ответ на Scheme conversion MySQL to PGSQL  ("Michelle Konzack" <linux4michelle@tamay-dogan.net>)
Список pgsql-general
> On 24 Dec 2017, at 18:52, Michelle Konzack <linux4michelle@tamay-dogan.net> wrote:

> CREATE TABLE sqmf_stat (
>      stat_login        varchar(70)     NOT NULL,
>      stat_post         integer         default '1',
>      stat_thread       integer         default '1',
>      PRIMARY KEY       (stat_login),
>      UNIQUE KEY user   (stat_login)
> );

Just a minor observation, but a PRIMARY KEY is UNIQUE by definition. There's no need for that UNIQUE key "user" on the
samefield. 

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.



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

Предыдущее
От: Ken Tanzer
Дата:
Сообщение: Re: Array of foreign key
Следующее
От: "Michelle Konzack"
Дата:
Сообщение: [OT] subscribtion with no-mail option?