Re: another foreign key question
| От | Roderick A. Anderson |
|---|---|
| Тема | Re: another foreign key question |
| Дата | |
| Msg-id | Pine.LNX.4.10.10112182203010.13269-100000@tincan.org обсуждение исходный текст |
| Ответ на | another foreign key question ("Adam Fisher" <black@cia.com.au>) |
| Список | pgsql-general |
On Wed, 19 Dec 2001, Adam Fisher wrote:
> alter table invhistory
> add constraint fk_invhist_invid_inventory
> foreign key ("invid") references "inventory" ("invid")
Wasn't there something about foreign keys having to be of the same data
type? (This pops to mind without doing a search of the archives) The
inventory table is using integer (INT4?) and the invhistory uses
NUMERIC(14,0). Seems a cast between types will be some extra overhead.
Isn't NUMERIC what was called BCD (binary coded decimal)
in-the-olden-days.
Rod
--
Let Accuracy Triumph Over Victory
Zetetic Institute
"David's Sling"
Marc Stiegler
В списке pgsql-general по дате отправления: