在 MySQL 中,我可以轻松地将时间戳字段的默认值设置为当前时间
fieldname timestamp not null default current_timestamp
有谁知道如何在 java derby 中做同样的事情?
最佳答案
这应该有效 fieldname TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
关于java - 用于 java derby 的 mysql 的 current_timestamp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1957476/