database problem ORA-06550

5 pts.
Tags:
ORA-06550
Oracle Error Codes
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

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following