"question_id": 58640
"tags": ["polls", "fun", "quotes"]
"title": "Great programming quotes"
"question_id": 184618
"tags": ["polls", "fun", "comment"]
"title": "What is the best comment in source code you have ever encountered?"
"question_id": 3734102
"tags": ["c++", "linux", "exit-code"]
"title": "Why cant' I return bigger values from main function ?"
"question_id": 2349378
"tags": ["communication", "terminology", "vocabulary"]
"title": "New programming jargon you coined?"
"question_id": 3723817
"tags": ["open-source", "project-management", "failure", "fail"]
"title": "How to make an open source project fail"
"question_id": 3699150
"tags": ["testing", "interview-questions", "job-interview"]
"title": "Interview question please help"
這只是一個文本提取一些問題,我得到了使用SO API。我應該如何設計表格以將標籤存儲在數據庫中?
要使此查詢成爲可能,我想使用SQLite來存儲數據。
我應該如何存儲標籤列?
由於這裏的限制,以便爲五個標籤,我可以使用五個標籤1,標籤2 ... ...,但我認爲會有什麼可以做的更優雅。可以擴展到任何數量的標籤在那裏,而且還可以處理基本的查詢,如
select title from table where tag has "c++" and "boost" but not "c"
[用於標記數據庫設計]的可能重複(http://stackoverflow.com/questions/48475/database-design-for-tagging) – APC 2010-09-19 10:11:21