时间函数 now() current_timestamp() 和 sysdate()

CURRENT_TIMESTAMP and CURRENT_TIMESTAMP() are synonyms for NOW().

也就是说 CURRENT_TIMESTAMP和 CURRENT_TIMESTAMP()都是 NOW()这个函数的同义词,所以作用相同,

而sysdate()函数的解释是

SYSDATE() returns the time at which it executes. This differs from the behavior for NOW(), which returns a constant time that indicates the time at which the statement began to execute. (Within a stored function or trigger, NOW() returns the time at which the function or triggering statement began to execute.)

简单来说,now()current_timestamp())函数获得的是语句开始执行时的时间,而sysdate()函数是这个函数执行时候的时间。

所以 Insert into tablea  (a,b,c,inserttime) select a,b,c,sysdate(3) from tableb

最新文章

  1. 关于在线编辑器的选择:tinymce - nilcms
  2. jQuery插件开发(转)
  3. Django 中url补充以及模板继承
  4. SpirentTestcenter测试仪的自动化
  5. JQuery------获取<input type="file">中的文件内容
  6. overflow 清除浮动
  7. ci为什么必须得写构造函数
  8. c++之路起航——指针
  9. C#综合揭秘——细说多线程(上)
  10. 在VS2010 中兼容Qt4和Qt5
  11. Oracle hextoraw和rawtohex
  12. curl post参数,接口接收不到数据问题
  13. Silverlight 中 TreeView 的数据绑定
  14. Gson的基本使用方法(google)
  15. 泛型 "new的性能"
  16. Mesos源码分析(2): Mesos Master的启动之一
  17. JS 获取图片标签和所有的图片中的src的正则表达式
  18. WindowsPE权威指南 第二章 小工具 PEInfo代码的C语言实现
  19. ubuntu桌面环境安装中文环境
  20. Hive调优

热门文章

  1. keil 常用调试方法
  2. 2022-04-19内部群每日三题-清辉PMP
  3. Linux一键单机部署和集群部署
  4. elmentui 表单验证问题
  5. React-Native笔记--node_modules删除
  6. 关于JDK1.8 java HashMap的tableSizeFor的解析:一个数最近2的幂次数方法
  7. snorkel SentenceNgramViewer 标记时出现 Integrity Error
  8. source Insight 的常用设置
  9. 【pytest】执行测试不输出logging日志问题
  10. 注释中的Unicode编码也会被转义