coltest 发表于 2007-04-16 15:50

informix 中current能取到year to second的值,我想取到毫秒呢

informix 中current能取到year to second的值,我想取到毫秒呢
define p_time datetime year to fraction(3);
let p_time = current year to fraction(3);
这样p_time只是精确到秒的值,我想取到毫秒呢,应该怎么写。。。。

coltest 发表于 2007-04-16 17:27

怎么没有回复的呀。难道CURRENT只能取到精确到秒的时间吗

怎么没有回复的呀。难道CURRENT只能取到精确到秒的时间吗

czw1413_cn 发表于 2007-04-16 22:37

syitssa 发表于 2007-06-27 16:21

原帖由 czw1413_cn 于 2007-4-16 22:37 发表
define p_time datetime year to fraction(3);
select current into p_time from tabname

informix可以这样用吗?

ivhb 发表于 2007-06-27 17:00

让你自己写一个procedure或者function来实现这个功能
页: [1]
查看完整版本: informix 中current能取到year to second的值,我想取到毫秒呢