看板 MIS 關於我們 聯絡資訊
各位大大 好 跑了python連mongodb程式範例一下 data例子是key-value資料 請問mongodb可儲存非key-value資料? 例如一般text或syslog或python list或python tuple? 謝謝大大閱讀 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.230.84.5 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/MIS/M.1701359015.A.D1A.html
Hsins: 這問題很奇怪,在 mongodb 中沒有像關聯式資料庫那樣有著硬 12/01 13:08
Hsins: 性的 schema 去限制資料表。從邏輯上看起來他就像的嵌套的 12/01 13:09
Hsins: key-value 物件,至於這個 value 要放什麼值,你可以決定 12/01 13:10
Hsins: 。一般的 text 當然可以,他就是一筆筆具有 id 的 string 12/01 13:10