oracle得到當前時間的,精確到毫秒 能夠指定精確豪秒的位數數據庫
select to_char(systimestamp, 'yyyymmdd hh24:mi:ss.ff ') from dual;--20120516 11:56:40.729083oracle
select to_char(systimestamp, 'yyyymmdd hh24:mi:ss.ff3') from dual;--20120516 11:58:42.755工具
desc ct_cdr_comparison
名稱 空值 類型
--------------------------- -------- -------------
DATTCDRCOMPARISONGUID NOT NULL TIMESTAMP(9)
VC2CUSTOMER VARCHAR2(200)
VC2M800 VARCHAR2(200)
NUMSTATE NUMBER(1)
NUMMARGINCALLTIME_MIN NUMBER(10)
NUMMARGINCBEGIN_MIN NUMBER(10)
NUMCDR_COMPARISONDETAILGUID NUMBER(10)
DATCREATEADATE DATE
DATOPERATEDATE DATE
VC2CREATECODE VARCHAR2(200)
VC2OPERECODE VARCHAR2(200)
VC2REMARK VARCHAR2(200)code
select * from ct_cdr_comparison;blog
2012-05-16 13:17:14.340213000 a m800 0 20 20 1 2012-05-16 13:17:14 liuwen
2012-05-16 13:19:36.659724000 a m800 0 20 20 2 2012-05-16 13:19:36 liuwen it
若是結果沒顯示:請設置時間戳date
工具==》選項==》數據庫==》NLSselect
時間戳格式:YYYY-MM-DD HH24:MI:SS.FFim
insert into ct_cdr_comparison
( dattCDRCOMPARISONGUID,
VC2CUSTOMER,
VC2M800,
NUMSTATE,
NUMMARGINCALLTIME_MIN,
NUMMARGINCBEGIN_MIN,
NUMCDR_COMPARISONDETAILGUID,
DATCREATEADATE,
vc2createcode
)
values (systimestamp,'a','m800',0,20,20,2,sysdate,'liuwen');時間戳
出處:http://thinktothings.iteye.com/blog/1532584