بتاريخ: 31 مارس 200521 سنة comment_31511 السلام عليكم ورحمة الله وبركاتهاخواني اشكركم على هذا المنتدى التعليمي والله يزيدكم من علمهانا بصراحه اعرف مبادء قليلة جدا في PL/SQL وقد واجهة مشكله اثناء محاولاتلحل هذا السؤال ..ارجو من يقوم بحله التوضيح والشرح إن امكن ..اتركم مع السؤالبإنتظار ردودكم تم تعديل 31 مارس 200521 سنة بواسطة SuNtOp تقديم بلاغ
بتاريخ: 1 أبريل 200521 سنة comment_31597 salam ...i did the same example but unfortunately i dont have it right now...i will get it for u tommorrow inshallah so dont worry .. تقديم بلاغ
بتاريخ: 2 أبريل 200521 سنة comment_31774 create or replace procedure update_sal is emp_count number; cursor emp_cur is select empno,ename,esal from employee where esal between 1000 and 3000; emp_rec emp_cur%rowtype; begin select count(*) into emp_count from employee where esal between 1000 and 3000; if emp_count is null or emp_count = 0 then raise no_data_found; end if; for emp_rec in emp_cur loop update employee set esal = esal + (esal * 0.2) where empno = emp_rec.empno; insert into commition (eno,ename,sal) values (emp_rec.empno,emp_rec.ename,emp_rec.esal + (emp_rec.esal * 0.2)); end loop; commit; dbms_output.put_line(emp_count || ' employees updated'); exception when no_data_found then dbms_output.put_line('no_data_found'); end update_sal; تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.