informix 索引求助
请问informix 能建函数索引吗?能否给个实例我看下,谢谢! 原帖由 liuq1224 于 2008-3-12 17:46 发表 http://bbs.chinaunix.net/images/common/back.gif
请问informix 能建函数索引吗?
能否给个实例我看下,谢谢!
create function new_to_date(dt char(20))
returns datetime year to second
with (not variant)
return to_date(dt,"%Y%m%d%H%M%S");
end function;
create index ix_newdate on table(new_todate(intime));
建完索引记得update statistics下表. 242: Could not open database table (informix.tablename).
106: ISAM error:non-exclusive access.
我在建的时候提示出了这个错误,这是什么原因呢?
谢谢 原帖由 liuq1224 于 2008-3-14 01:59 发表 http://bbs.chinaunix.net/images/common/back.gif
242: Could not open database table (informix.tablename).
106: ISAM error:non-exclusive access.
我在建的时候提示出了这个错误,这是什么原因呢?
谢谢
有人在用这个表........建索引要求独占使用这个表.. 9848: Functional key part cannot use a variant function( function name)
这是怎么回事,,真郁闷,没建过函数索引;
那个procedure 不能参于建索引吧 原帖由 liuq1224 于 2008-3-14 12:38 发表 http://bbs.chinaunix.net/images/common/back.gif
9848: Functional key part cannot use a variant function( function name)
这是怎么回事,,真郁闷,没建过函数索引;
那个procedure 不能参于建索引吧
-9848 Functional key part cannot use a variant function function_name.
The function used in a CREATE INDEX statement for a functional key part
must be a nonvariant function (that is, it must be created with the NOT
VARIANT modifier in the CREATE FUNCTION statement).
你建立的function不适合建function index..原因如上. 怪不得
要 nonvariant modifierfunction啊
老实说我对这些还不熟,呵呵
我只看到了informix 支持建函数索引,,至于说只有某种类型的才能建我就没看到
,无变量定义的不明白
页:
[1]