当前位置: 代码迷 >> Informix >> informix筑表
  详细解决方案

informix筑表

热度:4229   发布时间:2013-02-26 00:00:00.0
informix建表
有个时间想取系统当前时间 怎么设啊?
create table s (
start time --想要是系统当前时间,怎么设置?
)

------解决方案--------------------------------------------------------
创建表
create table table_time (
t datetime
)
插入数据
insert into table_time values (current)

------解决方案--------------------------------------------------------
随便建立一张表
create table a (
b char(1)
);
随便插一条数据
insert into a values( 'a' );

当你需要查询当前系统时间的时候,执行下面的语句
select current from a;
  相关解决方案