> Here are 2 of the tables i am trying to create:
>
> CREATE TABLE Distribucion (
> Id serial PRIMARY KEY NOT NULL,
> Nombre varchar(15)
> );
>
> CREATE TABLE Perfil_Aplicacion (
> Id serial PRIMARY KEY NOT NULL,
> Nombre varchar(20),
> Abreviatura char(4),
> Descripcion varchar(50),
> Distribucion integer,
> Enviar_Correo boolean,
> Enviar_Page boolean,
> Enviar_Popup boolean,
> Numero_Aprobadores integer,
> Numero_Acciones integer,
> Cierre_Automatico boolean,
> Caduca integer,
> FOREIGN KEY Distribucion REFERENCES Distribucion(Id)
> );
FOREIGN KEY <field> REFERENCES <table>
Where <field is a field in your table and <table> is another table, your table is referncing.
Nix.