我为部门编号(10,20,30)创建了具有列表样式(Poplist)的ListItem1,为员工名称创建了具有列表样式(Tlist)的其他ListItem2。员工姓名记录组
当我单击10号部门时,然后将所有员工姓名数据填充到ListItem2中。我只想填充属于部门10或20或30的雇员姓名的数据
代码:
DECLARE
a VARCHAR2(100);
num NUMBER := 10;
BEGIN
a := populate_group ('R1');
populate_list ('LIST1','R1');
END;
“ LIST1” 用于填充员工姓名数据 “ R1” 是组记录名称
答案 0 :(得分:0)
在PL / SQL中,列表称为集合。
尝试类似的方法:
DECLARE
TYPE population_type IS TABLE OF NUMBER INDEX BY VARCHAR2(64);
country_population population_type;
continent_population population_type;
howmany NUMBER;
which VARCHAR2(64)
BEGIN
country_population('Greenland') := 100000;
country_population('Iceland') := 750000;
howmany := country_population('Greenland');
continent_population('Australia') := 30000000;
continent_population('Antarctica') := 1000; -- Creates new entry
continent_population('Antarctica') := 1001; -- Replaces previous
value
which := continent_population.FIRST; -- Returns 'Antarctica'
-- as that comes first alphabetically.
which := continent_population.LAST; -- Returns 'Australia'
howmany := continent_population(continent_population.LAST);
-- Returns the value corresponding to the last key, in this
-- case the population of Australia.
END;
答案 1 :(得分:0)
听起来像您只需要向R1记录组添加where department_no = :List1
。