我想在一个表里增加一个时间戳,然后数据有变化的时候相应的时间戳也改变。 
1 不知道如何获得那么高精度的时间
2 时间戳是否会重复
3 时间戳还有什么别的用法吗?有点迷茫,请大家详解!

解决方案 »

  1.   

    select systimestamp from dual;
    时间戳不会重复
      

  2.   

    systimestamp 精确到毫秒 不会有重复的
    SQL> select systimestamp from dual;SYSTIMESTAMP
    ---------------------------------------
    27-5月 -10 01.25.01.359000 下午 +08:00
      

  3.   

    我试过了 systimestamp 显示的精度为秒后6位。 大数据量插入 在我的pc上 每100-200条数据都会重复