ahmedmax بتاريخ: 3 أغسطس 2006 تقديم بلاغ مشاركة بتاريخ: 3 أغسطس 2006 (معدل) 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 fieldsal , var are variablesthe problem is when the salary field doesnt contain dataso if there any way to check if the select statement doesn't return any result and replace its value with 0 like nvl functionthanx تم تعديل 3 أغسطس 2006 بواسطة ahmedmax اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
sms423 بتاريخ: 6 أغسطس 2006 تقديم بلاغ مشاركة بتاريخ: 6 أغسطس 2006 you can use where sal<>null اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
ahmedmax بتاريخ: 7 أغسطس 2006 كاتب الموضوع تقديم بلاغ مشاركة بتاريخ: 7 أغسطس 2006 thanks اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.