晕,突然来一句,天知道,是什么书上的啊?

解决方案 »

  1.   

    The cursor name is an undeclared identifier, not the name of a PL/SQL variable.
    You cannot assign values to a cursor name or use it in an expression. However,
    cursors and variables follow the same scoping rules. Naming cursors after database
    tables is allowed but not recommended.
    A cursor can take parameters, which can appear in the associated query wherever
    constants can appear. The formal parameters of a cursor must be IN parameters.
    Therefore, they cannot return values to actual parameters. Also, you cannot impose
    the constraint NOT NULL on a cursor parameter.------PL/SQL User Guide And Reference
      

  2.   

    我的理解:
    可以使游标名字与所取的表一致,但不建议这么做。