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

Problem in forms

Featured Replies

بتاريخ:

I want to create a pl/sql procedure that perform summary function on som feild in the database then add to a variable
something like

select sum(salary) into sal from employees where emp_no = :empno;
sal := sal +var;



salary is database field
sal , var are variables

the problem is when the salary field doesnt contain data
so if there any way to check if the select statement doesn't return any
result and replace its value with 0 like nvl function

thanx

بتاريخ:

السلام عليكم و رحمة الله و بركاتة
يا ahmedmax انت حليتها بنفسك
جرب
select Nvl(sum(salary), 0) into sal from employees where emp_no = :empno;
sal := sal +var;
و لو ما اشتغلتش لقدر الله قولى نجرب حاجة تانى

بتاريخ:

جرب الحل ده
select sum(salary) into sal from employees where emp_no = :empno;
sal := nvl(sal,0) +nvl(var,0);

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

hi ashraffarouk

I already tried
select Nvl(sum(salary), 0)
but it failed because the table is empty
I want a way to check if the table already have tuples or not

thanx in advance

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

Hi Rady

It works

You are genius

thanx

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

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

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

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

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

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.