Re: [Pgsql-ayuda] tabla en postgresql

From: Carlos Andres Pizo <sgeneris(at)cyberspace(dot)org>
To: Katherine Gallardo Puelles <katilin288(at)hotmail(dot)com>
Cc: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Subject: Re: [Pgsql-ayuda] tabla en postgresql
Date: 2003-10-21 16:01:35
Message-ID: Pine.SUN.3.96.1031021115803.11951A-100000@grex.cyberspace.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Sat, 18 Oct 2003, Katherine Gallardo Puelles wrote:

Hola:
> hola, soy una novata en postgresql y tengo una duda, tengo entendido que
> las tablas se crean asi:
> create table employee (Name char(20),Dept char(20),jobTitle char(20));
> pero no tengo claro cmo se hace para declarar que por ejemplo Name es la
> clave primaria o la clave fornea... no entiendo
> alguien me puede ayudar?
Dos formas:
1- create table employee (Name char(20),Dept char(20),jobTitle char(20),
PRIMARY KEY(name));
2- create table employee (Name char(20) PRIMARY KEY,Dept char(20),jobTitle
char(20));
> Gracias
> Kathy
siempre a la orden...
>
> _________________________________________________________________
> Charla con tus amigos en lnea mediante MSN Messenger:
> http://messenger.yupimsn.com/
>
> _______________________________________________
> Pgsql-ayuda mailing list
> Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
> http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda
>

Carlos Andres Pizo
TiQal - ParqueSoft
Linux Registred User #323242

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jenson Yabar 2003-10-21 19:20:59 [Pgsql-ayuda] Postgres muy lento
Previous Message Sebastián Villalba 2003-10-21 13:36:51 [Pgsql-ayuda] Problema en función al usar "timestamp + interval '$1 seconds' "