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.
したがって、ユーザーの毎月の支払いを追跡する必要があります。
ユーザーのすべての情報を含むテーブルがあります。
2010 年以降のすべての月を含む別のテーブルが必要になると思います。
わかりません、これはどのように行われますか?また、時間が経つにつれて新しい月を追加する必要があります...
データベース構造だけで、コードの助けは本当に必要ありません。
PAYMENT用に別のテーブルが必要です
何かのようなもの
PAYMENT ------------- payment_id amount payment_date user_id