الانتقال إلى المحتوى
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.

مساعدة فى cursor

Featured Replies

بتاريخ:

هل يمكن انشاء cursor واعمله fetch فى tabular

انا عملت

declare
cursor cur is select * from employees;
begin
open cur;
loop
exit when cur%notfound;
fetch cur into empno,ename,tel;
:block.text1 = empno;
:block.text2 = ename;
:block.text3 = tel;
end loop;
close cur;
end;



حيث text1,text2,text3 هى من نوع tabular
لكن الطريقة دى ما نفعتش
حد عنده اقتراحات؟؟

تم تعديل بواسطة ahmedmax

بتاريخ:

السلام عليكم
الكود بتاعك تمام بس ناقصة جملة بسيطة اوى
اخر سطر فى اللوب ضع
next_record
وهتمشى معاك بأذن الله

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

للاسف لم تعمل معى هذه الطريقة

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

الطريقة تعمل ولكن يظهر اخر record فقط
اريد ان تظهر جميع الrecords

بتاريخ:

يعطيكم العافية:
الحل حسب خبرتي هي وضع بعد close cursor جملة :
clear_form وذلك كي يجلب جميع الريكوردات

بتاريخ:

السلام عليكم
يمكنك تجربة الاتى
]eclare
cursor cur is select * from employees;
begin
Go_Block('BLOCK');
Frist_Record
For Rec In C Cur Loop
:block.text1 = Rec.empno;
:block.text2 = Rec.ename;
:block.text3 = Rec.tel;
Next_Record;
end loop;
Frist_Record;
end;

بتاريخ:

DECLARE
CURSOR GETEMP IS
 SELECT EMPNO,ENAME,JOB,HIREDATE,MGR,SAL,COMM
 FROM EMP
 where ename=n;
BEGIN
GO_BLOCK('EMP');
FIRST_RECORD;
OPEN GETEMP;
  LOOP 
FETCH GETEMP INTO :EMP.EMPNO,:EMP.ENAME,:JOB,:HIREDATE,:MGR,:SAL,:COMM;
EXIT WHEN GETEMP%NOTFOUND;
NEXT_RECORD;
END LOOP;
CLOSE GETEMP;
END;

:)

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

thanks hobaa it works

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

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

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

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

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

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.