DB2获取当前时间

SELECT current date FROM sysibm.sysdummy1;

'2012-09-20'

SELECT current time FROM sysibm.sysdummy1;

'14:04:04'

SELECT current timestamp FROM sysibm.sysdummy1;

'2012-09-20 14:04:11.343000'

-- 插入日期
insert into FRONT.PRODUCT_SWITCH(PRODUCT_ID, INCLUDE_SIGN, GROUP_ID, AREA, BEGIN_TERM_ID, END_TERM_ID)
values ('000001','0','2','',current date,current date)

你可能感兴趣的:(Date,db2,日期,current)