5 pts.
 database problem ORA-06550
declare type x is ref cursor; d x; r varchar(300); begin open d for select *from departments loop fetch d into r.last_name; exit when d%notfound; dbms_output.put_line(r); end loop; close d; end;

 

fetch d into r.last_name; * [/pre] يوجد خطأ عند سطر 8: ORA-06550: ¿¿¿ 7 ¿ ¿¿¿¿ 6 : PL/SQL: ORA-00933: ¿¿¿ SQL ¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿ ORA-06550: ¿¿¿ 6 ¿ ¿¿¿¿ 12 : PL/SQL: SQL Statement ignored ORA-06550: ¿¿¿ 12 ¿ ¿¿¿¿ 1 : PLS-00103: ¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿ "CLOSE"

[table border="0" width="100%" cellpadding="0" cellspacing="0"> [tbody] [tr] [td align="right">[/td] [/tr] [/tbody] [/table]
[table border="0" width="100%" cellpadding="0" cellspacing="0"> [tbody] [tr] [td colspan="3"> [script][/script] [/td] [/tr] [tr] [td colspan="2"> [script][/script] [/td] [td rowspan="2">[/td] [/tr] [tr] [td colspan="2" width="100%" class="x9">[/td] [/tr] [tr] [td colspan="3"> [script][/script] [/td] [/tr] [tr] [td][/td] [/tr] [/tbody] [/table] fetch d into r.last_name; * [/pre] يوجد خطأ عند سطر 8: ORA-06550: ¿¿¿ 7 ¿ ¿¿¿¿ 6 : PL/SQL: ORA-00933: ¿¿¿ SQL ¿¿ ¿¿¿¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿ ORA-06550: ¿¿¿ 6 ¿ ¿¿¿¿ 12 : PL/SQL: SQL Statement ignored ORA-06550: ¿¿¿ 12 ¿ ¿¿¿¿ 1 : PLS-00103: ¿¿ ¿¿¿¿¿¿ ¿¿¿¿¿ "CLOSE"
[table border="0" width="100%" cellpadding="0" cellspacing="0"> [tbody] [tr] [td align="right">[/td] [/tr] [/tbody] [/table]
[table border="0" width="100%" cellpadding="0" cellspacing="0"> [tbody] [tr] [td colspan="3"> [script][/script] [/td] [/tr] [tr] [td colspan="2"> [script][/script] [/td] [td rowspan="2">[/td] [/tr] [tr] [td colspan="2" width="100%" class="x9">[/td] [/tr] [tr] [td colspan="3"> [script][/script] [/td] [/tr] [tr] [td][/td] [/tr] [/tbody] [/table]

Software/Hardware used:
oracl pl/sql -isqlpluse
ASKED: April 26, 2010  10:26 PM
UPDATED: April 27, 2010  1:25 PM

Answer Wiki:
Aiman111, most of the text of your question is unreadable, please post it again using the editor's "code" tool. ORA-06550 is "compilation error". It seems that you are mixing the CURSOR FOR LOOP syntax with the use of an explicit cursor, but without the complete text from your question, we cannot be sure. -CarlosDL
Last Wiki Answer Submitted:  April 26, 2010  10:40 pm  by  carlosdl   63,535 pts.
All Answer Wiki Contributors:  carlosdl   63,535 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _