Re: references to variable in another schema
От
Mija Lee
Тема
Re: references to variable in another schema
Дата
Msg-id
4734A343.2020501@scharp.org
Ответ на
Re: references to variable in another schema (Tom Lane)
Список
Дерево обсуждения
references to variable in another schema Mija Lee <mija@scharp.org>
Re: references to variable in another schema Tom Lane <tgl@sss.pgh.pa.us>
Re: references to variable in another schema "Sean Davis" <sdavis2@mail.nih.gov>
Re: references to variable in another schema Mija Lee <mija@scharp.org>
Re: references to variable in another schema "Sean Davis" <sdavis2@mail.nih.gov>
Works like a charm. Thanks Tom & Sean for the quick response! Tom Lane wrote: > Mija Lee writes: >> I wanted to put a reference on a table in the public schema that >> references a column in a table in another schema. I tried: > >> create table cellphone(emplid integer not null references >> admin.tbl_employee.employee_id); > > Should be > > create table cellphone(emplid integer not null > references admin.tbl_employee(employee_id)); > > Or, if employee_id is the declared primary key of tbl_employee, you can > just say > > create table cellphone(emplid integer not null > references admin.tbl_employee); > > regards, tom lane
В списке pgsql-novice по дате отправления