rockjava 发表于 2013-1-30 02:09:25

informix 数据库 时间、日期简单操作

today  当前日期 (date)
sysdate 、current 当前时间(datetime)
 

select sysdate from test_table;-- 系统当前时间select current from test_table;-- 系统当前时间select TODAY-1 from test_table;-- 系统前一天日期select sysdate - 1 UNITS year from test_table;-- 系统前一年时间select sysdate - 1 UNITS month from test_table;-- 系统前一月时间select sysdate - 1 UNITS day from test_table;-- 系统前一天时间select sysdate - 1 UNITS hour from test_table;-- 系统前一小时时间select sysdate - 1 UNITS minute from test_table;-- 系统前一分钟时间select sysdate - 1 UNITS second from test_table;-- 系统前一秒时间select date (sysdate - 1*interval(24) hour to hour) from test_table;-- 系统前一天时间
页: [1]
查看完整版本: informix 数据库 时间、日期简单操作