Unique Constraint with foreign Key

Поиск
Список
Период
Сортировка
От mohan@physics.gmu.edu
Тема Unique Constraint with foreign Key
Дата
Msg-id 64366.138.88.163.115.1076432616.squirrel@physics.gmu.edu
обсуждение исходный текст
Ответы Re: Unique Constraint with foreign Key  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
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




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

Предыдущее
От: "Kumar"
Дата:
Сообщение: Re: Error in declaring %rowtype for recurrence
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Unique Constraint with foreign Key