插入从凹槽到DB2的电流时间戳
DB2具有Current_Timestamp函数,该函数以这种格式返回当前时间戳:2022-05-24-11:22:13.022543
是否等于Groovy中的Current_timestamp?如何存储从Groovy到DB2的当前时间戳?
DB2 has CURRENT_TIMESTAMP function that returns current timestamp in this format: 2022-05-24-11:22:13.022543
Is there equivalent to CURRENT_TIMESTAMP in groovy? How to store current timestamp from groovy to DB2?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以设置Timestamp
导入Java.sql.timestamp;
还将数据库列设置为时间戳。You can set Timestamp
import java.sql.Timestamp;
Also set your database column as Timestamp.