| От | Sean Davis |
|---|---|
| Тема | Re: references to variable in another schema |
| Дата | |
| Msg-id | 264855a00711090959r1ed3dbbbra14dda1241a25ddd@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: references to variable in another schema (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-novice |
On Nov 9, 2007 12:56 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Mija Lee <mija@scharp.org> 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); Thanks, Tom. I was woefully off-target. Sean
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера