小惡魔 - AppleBOY
  • Youtube 頻道
  • 線上課程
    Go 語言基礎實戰 Docker 容器開發實戰 一天學會 DevOps 自動化流程
  • 歷年文章
  • Search
小惡魔 - AppleBOY

Search 小惡魔 - AppleBOY

SQLite


[SQL] 如何從單一資料表取得每個 key 前 n 筆資料

 Posted on February 1, 2020  |  3 minutes  |  508 words  |  appleboy

postgres

最近專案需求需要實現單筆資料的版本控制,所以會有一張表 (foo) 專門儲存 key 資料,而有另外一張表 (bar) 專門存 Data 資料,那在 bar 這張表怎麼拿到全部 key 的最新版本資料?底下先看看 schema 範例

[Read More]
MySQL  Postgres  SQLite 

Appleboy  • © 2025  •  小惡魔 - AppleBOY

Hugo v0.130.0 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll