| От | Ricebot |
|---|---|
| Тема | Data model question regarding usage of arrays. |
| Дата | |
| Msg-id | 1143507534.272197.205920@i39g2000cwa.googlegroups.com обсуждение исходный текст |
| Ответы |
Re: Data model question regarding usage of arrays.
|
| Список | pgsql-general |
Hi,
I'm looking at a very simple database that contains a table
of recipes and a table of ingredients with nutritional content.
I'd defined the schema as such
CREATE TABLE ingredients
(
uid integer,
... -- nutritional info
)
CREATE TABLE recipes
(
uid integer,
ingredients integer[] -- uids in table ingredients
)
however I am reading that overall the usage of arrays in
data schema is frowned upon.
This seemed the lowest level @ which I could do things.
Is there a higher level SQL concept that would encapsulate
the "many to many" mapping of rows in the recipes table to
rows in the ingredients table?
Thanks,
- Eric
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера