【发布时间】:2020-02-27 09:42:39
【问题描述】:
我正在尝试构建一个包含多个列的字符串内容表,其中一些列包括(项目符号)无序列表。这被认为是一个值列表、一个数组还是其他东西?这是一个例子:
|----|----------------------|----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|
| 1 | Transition Age Youth | • Wrap-around services • Case management • Voluntary residential services • Employment and permanent housing support | • Outreach and engagement • Telemedicine • Counseling and services |```
Is this as simple as using line breaks /n or /r/n in the data itself?
I'll be using this as an open-data directory of services. I intend to have a search function where people can find all records containing keywords they specify. There's about 10 more columns I'm not showing which would help others narrow by filtering rows.
Thank you for any insight.
[!This photo illustrates one of several tables. Some have multiple unordered lists, this one illustrates a single list. There may be a limited list of options if that would help knowing too.[1]][1]
[1]: https://i.stack.imgur.com/MaTmV.png
【问题讨论】:
-
在考虑如何存储列表之前,您应该准备好解释处理它的所有方式。您是否要动态地将元素添加到列表中?每个列表项是否与其他数据相关,例如您要执行基于文本的搜索吗? Tim 的“将列表项标准化为表格”方法是教科书式的,但仅当每个列表项都与数据相关时才适用。这些可能更像标签,甚至是任意内容?
标签: arrays postgresql html-lists