بتاريخ: 10 نوفمبر 201015 سنة comment_203510 السلام عليكملمن لديه الخبره في loopالموضوع في المرفقات Write a PL-SQL block to display and insert numbers from 20 to 30 in the table ODD_EVEN. Repeat the step using all 3 loop structures in PL-SQL .[/sizeبيانات الجدول من 20_ 30..... ODD-EVENCREATE TABLE ODD_EVEN(GIVEN_no number(8) primary key, description char(8) not null)Gaven no description20 EVEN21 ODD22 even تم تعديل 10 نوفمبر 201015 سنة بواسطة أحساس غالي تقديم بلاغ
بتاريخ: 10 نوفمبر 201015 سنة كاتب الموضوع comment_203514 بيانات الجدول من 20_ 30..... ODD-EVENcolumn name data type size attributes Gaven_no number 8 primary key description char 8 not null Gaven no description 20 EVEN 21 ODD 22 even تقديم بلاغ
بتاريخ: 10 نوفمبر 201015 سنة comment_203518 بسم الله الرحمن الرحيمالنوع الاول Basic Loop Declare I number := 20; Begin Loop Dbms_output.put_line(I||' is even'); I := I + 1; Dbms_output.put_line(I||' is odd'); Exit when i = 30 ; end loop; End; النوع الثانى While Loop Declare I number := 20; Begin while(I <=29) Loop Dbms_output.put_line(I||' is even'); I := I + 1; Dbms_output.put_line(I||' is odd'); End Loop; End; النوع الثالث For Loop Declare I number := 0; Begin For I in 20..30 loop If MOD(1,2) =0 then Dbms_output.put_line(I||' is even'); else Dbms_output.put_line(I||' is odd'); end if; End Loop; End; بالتوفيق ان شاء الله فى هذا الاختبار .... و بعدين مفيش اى مرفقات بس الاجابه دى بناءا على فهمى اتمنى ان تكون هو ما قصدته ... تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.