الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

طلب كود Pl-Sql...عايز أعمل nested loop يتعامل مع cursor

Featured Replies

بتاريخ:

عايز أعمل nested loop يتعامل مع cursor
يطلع لى كل إدارة وتحت منها الموظفين بتوعها

مثلاً


10
mohamed
ali
20
ashraf
tamer


وجزاكم الله كل خير

بتاريخ:

السلام عليكم
تفضل:


Declare
Cursor C Is
Select Deptno, Dname
  From Dept;
  
Cursor C1(Pn_Deptno Number) Is
Select Ename
  From Emp
 Where Deptno = Pn_Deptno; 
Begin
For Rec In C Loop
 Dbms_Output.Put_Line(Rec.Dname);
  For Rec1 In C1 (Rec.Deptno) Loop   
   Dbms_Output.Put_Line(Rec1.Ename);   
  End Loop;  
End Loop;
End; 

بتاريخ:
  • كاتب الموضوع

هو لازم ياباشمهندس نباصى رقم الإدارة (dept_id) فى الكيرسور التانى
وهل مفيش طريقة أخرى استخدمها اتنين لوب مثلاً داخل بعض بكيرسور واحد

بتاريخ:

Declare
Cursor C ( Pn_Deptno Scott.Dept.Deptno%Type) Is
Select Ename
From Scott.Emp
Where Deptno = Pn_Deptno;
Begin
For I In ( Select Dname, Deptno From Scott.Dept) Loop
Dbms_Output.Put_Line( I.Dname);
For Rec In C( I.Deptno) Loop
Dbms_Output.Put_Line( Rec.Ename);
End Loop;
End Loop;
End;

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.