Search Postgresql Archives

Re: database design questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 4/3/06, Ottavio Campana <ottavio@xxxxxxxxxxxxx> wrote:
 
3) faq 4.11.1 says

>    CREATE TABLE person (
>        id   SERIAL,
>        name TEXT
>    );
>
>is automatically translated into this:
>
>    CREATE SEQUENCE person_id_seq;
>    CREATE TABLE person (
>        id   INT4 NOT NULL DEFAULT nextval('person_id_seq'),
>        name TEXT
>    );

how can I do it with a INT8 instead of a INT4?

Thank you

Is there a reason not to write explicitly?

CREATE SEQUENCE person_id_seq;
CREATE TABLE person (
id   INT8 NOT NULL DEFAULT nextval('person_id_seq'),
name TEXT
);


Tomislav

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux