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

Cursor لعرض أكثر من سجل

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته
أعضاء هذا الصرح العظيم
كل عام وانتم بألف خير
اخوتي بالله.
أنا لدي Cursor تقوم بعرض عدة سجلات من جدول ناتج من many to many
لما أنفذ الكود يظهر لي الخطأ التالي

pls-00306: wrong number or types of arguments in call to 'put_line'


و هذا هو الكود اللي انا عملته,,
ما أدري و ين الخطأ

declare
cursor c1 is 
select sales.STYLE,items.description,sales.qty,items.value
from sales,items
where   items.STYLE=sales.STYLE ;
STYLE1 items.STYLE%type;
description1 items.description%type;
qty1 sales.qty%type;
value1 items.value%type;
begin

open c1;
loop
fetch c1 into STYLE1,description1,qty1,value1;
exit when c1%notfound;
dbms_output.put_line(STYLE,description1,qty1,value1);
close c1;

end;
/


ممكن المساعدة فيه

بتاريخ:

بسم الله الرحمن الرحيم
بصفه عامه cursor لايحتوى على امر اغلاق loop
end loop;
قمت بعمل مثال لك جلب معلومات من جدولين الاول الموظفين الثانى جدول الادرات

declare
cursor c is select emp.ename,emp.sal,dept.dname
from emp , dept
where emp.deptno =dept.deptno;
va_1  emp.ename%type;
va_2 emp.sal%type;
va_3 dept.dname%type;
begin
open c;
loop
fetch c into va_1,va_2,va_3;
dbms_output.put_line(' the name is  '||va_1|| ' get salary ' ||va_2|| ' worked in '||va_3);
exit when c%notfound;
end loop;
close c;
end;
/


يمكنك التعديل فيه
بالتوفيق

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

جزاك الله خير,,,,
في هذا اليوم الفضيل
يوم عرفه,,
و كل عام وانت بخير

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

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

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

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

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

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.