开发者

DB2 Timestamp Query shows differetn value in excel

开发者 https://www.devze.com 2023-03-23 01:29 出处:网络
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 sho

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

精彩评论

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