开发者

DB2 Timestamp Query shows differetn value in excel

I am using c#, 开发者_Go百科with DB2, a query

SELECT current timestamp FROM sysibm.sysdummy1 

shows correct value in Toad, but throgh code, gets value formatted in DD/MM/YY HH:MM format when I show it in excel.


The timestamp value is the same*, it's just how it's being displayed in Excel. You can change the formatting in Excel to display the value as it shows in DB2 if you'd like.

Note: A DB2 timestamp is accurate to microseconds, but Excel only supports milliseconds. So you will lose a little precision.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜