首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Informix >

informix筑表

2013-01-01 
informix建表有个时间想取系统当前时间 怎么设啊?create table s (start time --想要是系统当前时间,怎么

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;

热点排行