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.
我在“更新”字段上使用了时间戳,每次创建或更新新字段时,我都希望它获取当前时间戳。创建字段后,我得到 00-00 00:00:00 即使我只在创建时传递 '' 。我如何解决它?
updated timestamp on update CURRENT_TIMESTAMP
传入null插入语句
null
SQLFiddle 示例