SQL> declare
  2  type customers_table is table of customers%rowtype
  3       index by binary_integer;
  4  c_table customers_table;
  5  cursor c is select cno,cname,street,zip,phone
  6         from customers;
还有带那个‘%’有什么作用?
那个customers_table是定义类型的吗?
index又是干嘛的?

解决方案 »

  1.   

    %就我的理解就是和rowtype(列的类型)一样!
      

  2.   

    %rowcount
    %found
    之类的你都可以看一看oracle 的app doc里面所有的解释都是有的。
      

  3.   

    整句话的意思是类型customers_table是基于customers表而申明的,申明的表类型可以使用binary_integer类型来做下标调用。
    这是一个集合
      

  4.   

    customers_table是基于customers表创建的   %的意思是 customers_table类型和customers类型一致
    index是用来设置索引的