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.
我有一个 select 语句,它在列中查找该月 9 日的所有日期,无论月份和年份如何:
SELECT * FROM tblhosting WHERE DAY( nextduedate ) =09
我想将 DAY 更新为 10,但不考虑月份和年份。
有什么帮助吗?
UPDATE tableName SET nextduedate = DATE_ADD(nextduedate,INTERVAL 1 DAY) WHERE DAY(nextduedate) = 9
资源: