| От | Tom Lane |
|---|---|
| Тема | Re: USMARC and postgresql? |
| Дата | |
| Msg-id | 11994.957882866@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: USMARC and postgresql? (Andrew Sullivan <sullivana@bpl.on.ca>) |
| Список | pgsql-general |
Andrew Sullivan <sullivana@bpl.on.ca> writes:
> This is way hard. The reason is simple: MARC allows all of the following:
> 1. Multiple instances of the same field.
> 2. Variable length of field.
> 3. Unpredictable numbers of completed fields.
I would think you could handle this by splitting an entry into multiple
records linked by a common ID value. In barest bones:
itemid int,
fieldtype int,
fieldvalue text
and you do a SELECT ... WHERE itemid = X and fieldtype = Y to retrieve
all the instances of a particular field.
Still, looking around for someone who's already done it seems like a
fine idea ;-)
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера