EXEC SQL BEGIN DECLARE SECTION; client collection set(list(integer not null)) a_set; client collection list(integer not null) a_list; int an_int; EXEC SQL END DECLARE SECTION;
要访问一个嵌套集合的元素(或字段),可以使用匹配元素类型(前面代码段中的 a_list 和 an_int)的 collection 或 row 变量和 Select 游标。