读书人

informix建表,该怎么处理

发布时间: 2012-03-14 12:01:12 作者: rapoo

informix建表
有个时间想取系统当前时间 怎么设啊?

SQL code
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;

读书人网 >Informix

热点推荐