Re: Change key primary for key foreign

From: Guilherme Rodrigues <lopesgrml(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Change key primary for key foreign
Date: 2012-09-19 00:25:42
Message-ID: 4c5f940e-e2c0-4f93-97e2-208849f4c8a4@googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2012-09-19 00:47:50 Re: Difference between ON and WHERE in JOINs
Previous Message Jean-Christophe Boggio 2012-09-19 00:21:03 Difference between ON and WHERE in JOINs