我试图显示DB2时间戳,它的形式如下:
2007-09-24-15.53.37.2162474
FormatDateTime()只允许显示毫秒。如何显示DB2中定义的完整时间戳字符串?
我的代码现在看起来是这样的:
StringGrid1.Cells[i, query.RecNo] := FormatDateTime('yyyy-mm-dd.hh.mm.ss.zzz',
query.Fields[i].AsDateTime); 发布于 2018-11-10 11:45:58
哦!我关注的是代码而不是SQL。
刚刚用过:
SELECT char(TIMESTAMP) FROM table;然后:
StringGrid1.Cells[i, query.RecNo] := query.Fields[i].AsString; https://stackoverflow.com/questions/53238325
复制相似问题