create table lms_purchases_with_timestamp(
product_id integer references lms_product(product_id),
customer_id integer references lms_customers(id),
made_on timestamp(4));

解决方案 »

  1.   

    什么意思?
    SQL> select sysdate from dual;SYSDATE
    -------------------
    2016-10-25 20:06:30
      

  2.   

    create table id(id int, t timestamp default systimestamp)
      

  3.   

    怎么向lms_purchases_with_timestamp中insert数据进表
      

  4.   

    insert into lms_purchases_with_timestamp
    select id1,id2,sysdate from dual;--sysdate时间精度应该可以满足你的系统要求了
      

  5.   

    既然要时间戳,给字段默认值就行了,数据插入的时候也不用管他create table id(id int, t timestamp default systimestamp)