仔细看吧,相信你有读懂他的能力!!The %TYPE attribute provides the datatype of a variable, constant, or 
database column.  In the following example, %TYPE provides the datatype 
of a variable:     credit  REAL(7,2); 
    debit   credit%TYPE; Variables and constants declared using %TYPE are treated like those 
declared using a datatype name.  For example, given the previous 
declarations, PL/SQL treats "debit" like a REAL(7,2) variable. The next example shows that a %TYPE declaration can include an 
initialization clause:     balance          NUMBER(7,2); 
    minimum_balance  balance%TYPE := 10.00; The %TYPE attribute is particularly useful when declaring variables 
that refer to database columns.  You can reference a table and column, 
or you can reference a schema, table, and column, as the following 
example shows:     my_dname  scott.dept.dname%TYPE; Using %TYPE to declare "my_dname" has two advantages.  First, you 
need not know the exact datatype of "dname."  Second, if the database 
definition of "dname" changes, the datatype of "my_dname" changes 
accordingly at run time. Note, however, that a NOT NULL column constraint does not apply to 
variables declared using %TYPE.  In the next example, even though the 
database column "empno" is defined as NOT NULL, you can assign a null to the variable "my_empno":     DECLARE 
        my_empno  emp.empno%TYPE; 
        ... 
    BEGIN 
        my_empno := NULL;  -- this works 
        ... 
    END;