From: Alban Hertroys <haramrae@gmail.com>
To: Michelle Konzack <linux4michelle@tamay-dogan.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Scheme conversion MySQL to PGSQL
Date: Mon, 25 Dec 2017 11:13:40 +0100
Message-ID: <40A1A9E2-75C6-4CDB-A786-402D03962CD0@gmail.com> (raw)
In-Reply-To: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net>
References: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net>
> 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 same field.
Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: haramrae@gmail.com, linux4michelle@tamay-dogan.net
Subject: Re: Scheme conversion MySQL to PGSQL
In-Reply-To: <40A1A9E2-75C6-4CDB-A786-402D03962CD0@gmail.com>
References: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net> <40A1A9E2-75C6-4CDB-A786-402D03962CD0@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox