Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
1 DECLARE
2 A NUMBER(4):=&A;
3 N NUMBER;
4 BEGIN
5 FOR I IN 1..10
6 LOOP
7 N:=A*I;
8 DBMS_OUTPUT.PUT_LNE(A||'*'||I||'='||(N));
9 END LOOP;
10* END;
SQL> /
Enter value for a: 2
old 2: A NUMBER(4):=&A;
new 2: A NUMBER(4):=2;
DBMS_OUTPUT.PUT_LNE(A||'*'||I||'='||(N));
*
ERROR at line 8:
ORA-06550: line 8, column 13:
PLS-00302: component 'PUT_LNE' must be declared
ORA-06550: line 8, column 1:
PL/SQL: Statement ignored

pls help me

thank you





















Posted

1 solution

It is a simple typo...
You should write DBMS_OUTPUT.PUT_LINE and not DBMS_OUTPUT.PUT_LNE (missing I)!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900