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

مساعدة في امر استخراج الأرقام الفردية وأمر Insert

Featured Replies

بتاريخ:

السلام عليكم 

السؤال الأول : 

اريد عمل دوارة متداخلة في sql بالـ for مثلا i & j  بحيث اجعل j  يطبع لي الأعداد الفردية . فكيف يتم عمل الدوارة؟

سؤال اخر :

اريد ان اجعل المستخدم يدخل الأسم و الراتب في الـ run الموجودين في جدول employees فكيف يتم عملها ؟ علماً اني قد جربت ال insert into employees(first_name , salary) into n , sal values(n , sal)

بعد ما عملت select لهم لكنه يطلع لي error!

 و شكرا لكم الله يجزاكم خير اتمنى المساعدة 

بتاريخ:
--this code print the odd number only 
set serveroutput on 
declare
v1 number := 1;
begin
while v1 < 100  loop
  if v1/2 like '%.%' then 
  dbms_output.put_line (v1);
  end if;
  v1 := v1 +1;
  end loop;
  end;

انشر الخطأ الذي حدث كي نتمكن من دراسته والرد

تم تعديل بواسطة aurora

بتاريخ:

ما المقصود بالسؤال التاني - هل تريد ادخال بيانات من جدول اسمه run  في جدول employee ??

اعرض رسالة الخطأ من فضلك

  • بعد 2 أسابيع...
بتاريخ:
  • كاتب الموضوع

السؤال هو : 

 

Write a block software To display the name of the
employee and his salary input by the user,(with
handling all the errors in each case if there are).

اي يريد من المستخدم ان يدخل الراتب للإختبار 

هنا الحل الصحيح :

 

declare
f employees.first_name %type ;
s employees.salary %type;
X integer ;
Begin
select first_name , salary into f , s from employees where
salary =: X;
dbms_output.put_line(f || ' ' || s);
exception
when too_many_rows then
dbms_output.put_line ('too_many_rows');
when no_data_found then
dbms_output.put_line('no_data_found');
when others then
dbms_output.put_line('error ');

لكن لما اطبقه يرفض بالمقابل عندما اضع في جملة الشرط  

Where salary := enter

يضبط و يطبق .

و اريد شرح للـ for  المتداخلة 

و شكرا

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

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

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

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

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

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.