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

oracle-list,array

2012-07-23 
oracle-----list,array定义type idList_type is table of emp.id%typetype namelist_type is table of em

oracle-----list,array

定义type idList_type is table of emp.id%type;type namelist_type is table of emp.name%type;idlist idlist_type;  namelist  namelist_type;begin   open emp_cv for select id,name from emp;   fetch emp_cv bulk collect into idlist,namelist;   //这个语句一次性就放入了   close emp_cv;   for i in idlist.first .. idlist.last loop       dbms_output.put_line(idlist(i));    end loop;end;

热点排行