doubt

Поиск
Список
Период
Сортировка
От sathish
Тема doubt
Дата
Msg-id 40C97E8C.7000804@ceedees.com
обсуждение исходный текст
Ответы Re: doubt  (Bruno Wolff III <bruno@wolff.to>)
Re: doubt  (Richard Huxton <dev@archonet.com>)
Список 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


В списке pgsql-general по дате отправления:

Предыдущее
От: NMB Webmaster
Дата:
Сообщение: Different runtime on the same query
Следующее
От: "Daniel Devico"
Дата:
Сообщение: Keep history of modifications