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

طلب مساعده في Procedure

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

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;

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

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;

ممكن أحد يشرح لي هالكود

وكمان عندي اسئلة ثانيه ياريت أحد يقدر يساعدني يرسل لي إيميله

وشاكره للجميع

بتاريخ:

هذا الكود هو بروسيجر يتم من خلاله زيادة رواتب موظفين قسم معين عن طريق تمرير رقم القسم و النسبة المراد زيداتها على الراتب
مثلا راتب محمد 2000 و المراد زيادت راتبه 20 بالمية
المعادلة هي : ((100+20)/ 100) * 2000= 2400 القيمة الجديدة ، حيث من الملاحظ انه يقوم بالمرور على كل الموظفين بالقسم المرر قيمته و تعديل رواتبهم و من ثم الخروج من الloop عند الانتهاء من التعديل للموظفين القسم

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

شكرا الله يجزاك الجنه يارب

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

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

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

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

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

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.