怎么在oracle8.16中插入这个时间:2003-08-22 15:13:21.184 
数据库字段是date类型,要求精确到毫秒,请指教。

解决方案 »

  1.   

    to_timestamp('2003-08-22 15:13:21.184','yyyy-mm-dd hh24:mi:ss.xff')你试试
      

  2.   

    to_timestamp('2003-08-22 15:13:21.184','yyyy-mm-dd hh24:mi:ss.ff')网上搜索到的
      

  3.   

    但是列的数据类型必须是timestamp:SQL> create table test_time (col_time timestamp);
    表已创建。
    SQL> insert into test_time values (to_timestamp('0001-1-1 0:0:0.0', 'syyyy-mm-dd hh24:mi:ss.ff'));
    已创建 1 行。
      

  4.   

    完整一点的测试:SQL> insert into test_time values (to_timestamp('2003-08-22 15:13:21.184','yyyy-mm-dd hh24:mi:ss.ff'));1 row insertedSQL> commit;Commit completeSQL> select * from test_time;COL_TIME
    --------------------------------------------------------------------------------
    22-8月 -03 03.13.21.184000 下午