Chinaunix

标题: 急,IDS中LIST类型问题 [打印本页]

作者: 大约在冬季    时间: 2005-06-24 11:08
标题: 急,IDS中LIST类型问题
我们在项目实施过程中,发现有张表中有LIST类型的字段,我们想取LIST字段的第一条记录,应该怎么取呢。
例如:
LIST
create row type mytype
(
my1 INTEGER not null,
my2 INTEGER not null,
my3 DECIMAL(18,2) not null,
my4 INTEGER not null,
my5 DECIMAL(18,2) not null,
my6 DECIMAL(18,2) not null,
my7 DECIMAL(18,2) not null,
my8 CHAR(3) not null,
my9 CHAR( not null,
my10 INTEGER not null
);

create table mytest
(
col1  list(mytype not null) ,
col2  DECIMAL(18,6),
col3  char(1
);

我现在要去mytest表中col1的第一条记录,怎么写sql?


请各位大侠帮帮忙?
作者: zzjijun    时间: 2005-06-24 17:41
标题: 急,IDS中LIST类型问题
用SQL应该是实现不了的。

可以参考一下<Guide to SQL Syntax>; "集合派生表“里的内容,试试用存储过程或ESQL。
作者: 大约在冬季    时间: 2005-06-25 15:40
标题: 急,IDS中LIST类型问题
谢谢,我试试




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2