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.
再会,
我需要清除我的 H2 数据库上的时间戳。我可以设置值,但我不能将其设置为空/清除它!
命令是什么?
UPDATE TABLE SET DATE='null' WHERE USERNAME='User'
不工作!
'null'是一个带有文本null的字符串,它不是value NULL。
'null'
NULL
您需要删除单引号:
UPDATE the_table SET DATE = null WHERE USERNAME='User'