获取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()
本文共 221 字,大约阅读时间需要 1 分钟。
获取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()
转载于:https://blog.51cto.com/hanshishang/1027102