Академический Документы
Профессиональный Документы
Культура Документы
empno: nrt
v_empno number(5) :=&empno;
v_empno number(5) :=nrt;
number(5) :=nrt;
*
ERROR at line 2:
ORA-06550: line 2, column 22:
PLS-00201: identifier 'NRT' must be declared
ORA-06550: line 2, column 10:
PL/SQL: Item ignored
ORA-06550: line 10, column 13:
PLS-00320: the declaration of the type of this expression is incomplete or malfo
rmed
ORA-06550: line 10, column 13:
PL/SQL: ORA-00904: "V_EMPNO": invalid identifier
ORA-06550: line 8, column 1:
PL/SQL: SQL Statement ignored
ORA-06550: line 11, column 49:
PLS-00320: the declaration of the type of this expression is incomplete or malfo
rmed
ORA-06550: line 11, column 1:
PL/SQL: Statement ignored
SQL> Declare
2
dbms_output.put_line('error code : '||sqlcode);
3
dbms_output.put_line('error mag1 :'||sqlerrm(sqlcode));
4
dbms_output.put_line('error msg2 : '||sqlerrm(100));
5
dbms_output.put_line('error msg3: '||sqlerrm(200));
6
dbms_output.put_line('error msg4: '||sqlerrm(-20000));
7 end;
8 /
dbms_output.put_line('error code : '||sqlcode);
*
ERROR at line 2:
ORA-06550: line 2, column 13:
PLS-00103: Encountered the symbol "." when expecting one of the following:
constant exception <an identifier>
<a double-quoted delimited-identifier> table long double ref
char time timestamp interval date binary national character
nchar
The symbol "<an identifier>" was substituted for "." to continue.
code : '||SQLCODE);
mag1 :'||sqlerrm(sqlcode));
msg2 : '||sqlerrm(100));
msg3: '||sqlerrm(200));
msg4: '||sqlerrm(-20000));
7* end;
SQL> /
error code : 0
error msg3:
SALARY
---------- ----------
123
4000
222
3000
----------
8 rows selected.
SQL> delete from a where rowid not in(select max(rowid)
2 from emp);
8 rows deleted.
SQL> select * from a;
no rows selected
SQL> rollback;
Rollback complete.
SQL> select * from a;
no rows selected
SQL> spool off