Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が達成しようとしているのは、現在の日付の 3 日前と現在の日付を含む現在の日付の 3 日前の範囲にある SQLite データベースからレコードを取得することです。
それはどのように行うことができますか?
日付が SQLite 日付関数で期待される形式、つまり で格納されていると仮定すると、この関数yyyy-mm-ddを使用して日付の計算を行うことができます。date
yyyy-mm-dd
date
SELECT * FROM MyTable WHERE DateCol BETWEEN date('now', '-3 days') AND date('now', '3 days')