pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mohan@physics.gmu.edu
To: pgsql-sql@postgresql.org
Cc: torque-user@db.apache.org
Subject: Unique Constraint with foreign Key
Date: Tue, 10 Feb 2004 12:03:36 -0500 (EST)
Message-ID: <64366.138.88.163.115.1076432616.squirrel@physics.gmu.edu> (raw)

Hi all i am using postgres and torque
I have a column x in Table A of type varchar and NOT NULL. I want to
impose a unique key constraint on that table and column y is the primary
key.
I have another Table B with column x. can i make this column x as a
foreign key on column x in table A.
or Can i have varchar types  of size 50 as primary keys in Postgres.

please let me know

--Mohan





view thread (6+ messages)  latest in thread

Message-ID: <64366.138.88.163.115.1076432616.squirrel@physics.gmu.edu>
Permalink:  ../64366.138.88.163.115.1076432616.squirrel@physics.gmu.edu/
Also on:    postgresql.org/message-id/64366.138.88.163.115.1076432616.squirrel@physics.gmu.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mohan@physics.gmu.edu, torque-user@db.apache.org
  Subject: Re: Unique Constraint with foreign Key
  In-Reply-To: <64366.138.88.163.115.1076432616.squirrel@physics.gmu.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox