1
我遇到过各种情况,我想以某种方式存储某些格式化的数据,以便轻松查询。什么简单的数据库可以用来存储和查询数据只为我自己?
例如
$ cat so.txt
"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"
$
一个简单的查询可以使用变量“C++”被显示的问题的标题。
这些要求
- 该数据库只支持我。
- 它必须能够支持所有常规的SQL类型查询。我对SQL很熟悉,所以它越像SQL就越好。
- 它必须在运行Ubuntu 10.04的Linux机器上本地运行。
- 此外,由于我的要求是最小的,我希望它不会占用太多的内存。
你对此建议使用哪些DBMS?
这只是一个示例格式。我计划在将数据存储到数据库之前手动解析数据。 – Lazer 2010-09-18 20:28:59
gotcha。在这种情况下,sqlite是迄今为止最简单和最轻的rdbms – 2010-09-18 20:44:12