获取Orcale数据库中的当前时间
to_char(sysdate,'yyyy-MM-dd HH24:mm:ss')
假如要插入 insert into 表名 values('abc',to_char(sysdate,'yyyy-MM-dd HH24:mm:ss')
Mysql
用current_time
SqlServer
用getdate()
hanshishang 博主文章分类:Java中常遇到的问题总结 ©著作权
文章标签 在数据库中获取当前时间 文章分类 数据库
获取Orcale数据库中的当前时间
to_char(sysdate,'yyyy-MM-dd HH24:mm:ss')
假如要插入 insert into 表名 values('abc',to_char(sysdate,'yyyy-MM-dd HH24:mm:ss')
Mysql
用current_time
SqlServer
用getdate()
上一篇:求1到100以内的素数
下一篇:Cookie与Session
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M