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.
我的数据库表有一个定义为使用的列ON UPDATE CURRENT_TIMESTAMP:
ON UPDATE CURRENT_TIMESTAMP
当记录中没有其他数据发生变化时,如何强制该last_access字段更新给定记录?
last_access
UPDATE your_table SET last_access = CURRENT_TIMESTAMP();?
UPDATE your_table SET last_access = CURRENT_TIMESTAMP();