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.
以下のような列を持つMySQLテーブルがあります
chat_id sender receiver msg msg_time
各受信者が受信した最新の 20 件のメッセージを除くすべてのメッセージを削除するために、毎日実行されるクエリが必要です。単一のクエリがあるか、PhP または他のプログラミング言語でコードを実行する必要があります。