doubt

From: sathish <sathish(at)ceedees(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: doubt
Date: 2004-06-11 09:42:36
Message-ID: 40C97E8C.7000804@ceedees.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

dear groups,
i have a doubt in sql,
i have a table staff_skills in which i have set a table level
constraint to create a primary key of two fields .
so 'name' and 'skill' combinedly forms a primary key.
now the issue is in another table i have only 'name' field and i
want to create a foreign key constraint which refers the staff_skills
table's 'name' field only.
staff_skills (table) - name,skill,ability (columns) --- primary
key(name,skill)
staff_xxxx (table) - name,x,y,z (columns) --- foreign
key(name) references staff_skills(name).
how to do the above?
your immediate reply will be helpful
yours sincerely
SathishKumar.S

Responses

  • Re: doubt at 2004-06-14 17:51:42 from Richard Huxton
  • Re: doubt at 2004-06-14 17:54:53 from Bruno Wolff III

Browse pgsql-general by date

  From Date Subject
Next Message spied 2004-06-11 11:01:39 Re: VACUUM FULL produce warnings
Previous Message Daniel Devico 2004-06-11 09:25:13 Keep history of modifications