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

استفسار هام...محتاج الشرح ... عاجل

Featured Replies

بتاريخ:

create procedure raise_salary(dept_no number, percentage number DEFAULT 0.5) is


cursor emp_cur is
select SAL , emp_id from EMP where DEPTNO = dept_no;
emp_rec emp_cur %rowtype;
begin
open emp_cur;
loop

gomar: fetch emp_cur into emp_rec;
exit when emp_cur%NOTFOUND;
update EMP set SAL = emp_rec.sal * ((100 + percentage)/100)
where emp_id = emp_rec .emp_id;
end loop;
close emp_cur;
commit;
end raise salary:

أرجو شرح الكود

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

بتاريخ:

هذا بروسيجر يستقبل متغيرين
الاول هو رقم القسم والثاني هو النسبة والقيمة الافتراضية للنسبة = 0.5
تم تعريف كيرسر يقوم باستعلام يجلب حقل الراتب وحقل رقم الموظف بشرط ان يكون رقم القسم يساوي رقم القسم الذي يستقبله البروسيجر وهو المتغير الاول
تم تعريف متغير emp_rec emp_cur %rowtype; وهو ياخذ نفس نوع الحقل الموجود في الكيرسر
ومن ثم قام بتشغيل الدوران على الكيرسر
ووضع قيمة الكيرسر كريكورد في المتغير الذي له نفس نوع الكيرسر
واخيرا قام بتحديث جدول الموظفين وقام بعملية حسابية على الراتب فقط لاغير

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

شكراً على الشرح

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

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

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

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

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

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.