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

الخروج من For....loop

Featured Replies

بتاريخ:

لدي PROCEDURE ما به FOR...LOOP وأريد الخروج منها عندما يكون المتغير المسمى Cell_val© بلا قيمة أي = NULL
أرجو الإفادة حيث أن الموضوع عاجل.
إليكم الكود
for r in 1..1000000 loop-- number of rows
for c in 1..2 loop--number of columns
args:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args,r);
OLE2.ADD_ARG(args, c);
cell:=OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
ole2.destroy_arglist(args);

--Return the cell value
if c =1 then
Cell_val© := ole2.Get_Char_Property(cell,'Value');

select inventory_item_id
into v_column1
from mtl_system_items
where segment1 =Cell_val©
and organization_id =109;
else
Cell_val© := ole2.Get_num_Property(cell,'Value');
end if;

end loop;

بتاريخ:

السلام عليكم

للخروج من اى لوب عامة عند تحقيق شرط معين

استخدم دالة

exit

begin for xx in 1..20 loop

if xx = 10 then

exit ;

end if ;

dbms_output.put_line(xx) ;

end loop ;

end ;

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

بتاريخ:

اخى للخروج من loop عندما تكون قيمة المتغير = null
تكتب قبل اغلاق ال loop اسم المتغير وتتبعه بهذه العباره كما يلى
Cell_val%notfound
وبهذه الطريقه سيتم الخروج من ال loop عندما تكون قيمة المتغير = null

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

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

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

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

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

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.