Search Postgresql Archives

Re: Change key primary for key foreign

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

 



I created one table so:

CREATE TABLE clima (
    city     char(80),
    cprc     int,
);

And have other table so:

CREATE TABLE city (
    name            char(80),
    other_thing     int,
);

But now I want the table clima receive name table city as foreign key. understand?
Sorry my bad english.


Em terça-feira, 18 de setembro de 2012 17h37min59s UTC-3, Guilherme Rodrigues  escreveu:
> Hello. I want to change one table already created. Where the comand? thank you.



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[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