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.
月と年に関係なく、月の9日にある列のすべての日付を検索するselectステートメントがあります。
SELECT * FROM tblhosting WHERE DAY( nextduedate ) =09
DAYを10に更新したいのですが、月と年はそのままにしておきます。
何か助けはありますか?
UPDATE tableName SET nextduedate = DATE_ADD(nextduedate,INTERVAL 1 DAY) WHERE DAY(nextduedate) = 9
ソース: