Re: table has a many to many relationship with itself ... ?
В списке pgsql-general по дате отправления:
| От | Wayne Conrad |
|---|---|
| Тема | Re: table has a many to many relationship with itself ... ? |
| Дата | |
| Msg-id | 20060616053324.GA9869@mail.yagni.com обсуждение |
| Ответ на | table has a many to many relationship with itself ... ? ("Daniel McBrearty" <danielmcbrearty@gmail.com>) |
| Список | pgsql-general |
On Tue, Jun 13, 2006 at 05:01:01PM +0200, Daniel McBrearty wrote: > create table translations ( > id serial primary key > ); > insert into table translations ... insert what? insert into translations default values; > The other way to do this that I see is to lose the link table > translations_to_phrases, and then make translations > > create table translations ( > id serial primary key, > phrases integer[] > ); > > but it seems that I can no longer make postgre aware that the integers > in translations(phrases) are references. I wouldn't use an array. I think arrays are best for data that can be considered one chunk of stuff by postgresql, with the arrayness of that chunk of stuff only mattering to the application.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера