الانتقال إلى المحتوى
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 نوع يمكنه ان يحمل parametr فكيف يمكن ان اقوم بتحديد مصدر هذه ال paramters ؟؟؟؟؟؟؟؟؟
وهذا مثال

DECLARE
  CURSOR c_zip (p_state IN zipcode.state%TYPE) IS
     SELECT zip, city, state
       FROM zipcode
      WHERE state = p_state
BEGIN
  FOR r_zip IN c_zip('NJ')
  LOOP  ...
    DBMS_OUTPUT.PUT_LINE(r_zip.city||
       ' '||r_zip.zip');
  END LOOP;
END;



اتمنى المشاركه و التفاعل

ايهاب وجدى

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

ايه ياشباب ولا وحد عنده خبره فى استخدام المؤشر واذاى اقوم با pass للقيم .
محدش اشتغل advanced cursor ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟




ايهاب وجدى

بتاريخ:

تخيل اخى ايهاب .. انة يوجد بروسدير فية كرزر من النوع الى بتتكلم عنة و فى الهد بتاع البروسدير كتبنا
p_state number و جوة البروسدير كملنا شغلنا عادى .. بس فى حاجة صغيرة ان البروسدير دا مش هيشتغل الا لو بسيط البرمتر او الفريبول دا من على الفورمة و اصبح p_state ذو قيمة ساعتها البروسدير ياخد استارت بوينت او نقطة انطلااق و يشتغل لأن الكرزر اشتغل بالقيمة دى .... يعنى بمعنى تانى .. شرط + قيمة فى وقت واحد عشان البروسدير يشتغل .. و الله اعلم

Oracle ITself

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

مشكور اخى على الردددددددددددددددددددد

بتاريخ:

الاخ العزيز
راجع ذلك المثال
SET SERVEROUTPUT ON
1 DECLARE
2 CURSOR c_student IS
3 SELECT first_name, last_name, student_id
4 FROM student
5 WHERE last_name LIKE 'J%';
6 CURSOR c_course
7 (i_student_id IN
student.student_id%TYPE)
8 IS
9 SELECT c.description, s.section_id sec_id
10 FROM course c, section s, enrollment e
11 WHERE e.student_id = i_student_id
12 AND c.course_no = s.course_no
13 AND s.section_id = e.section_id;
14 CURSOR c_grade(i_section_id IN
section.section_id%TYPE,
15 i_student_id IN
student.student_id%TYPE)
16 IS
17 SELECT gt.description grd_desc,
18 TO_CHAR
19 (AVG(g.numeric_grade), '999.99')
num_grd
20 FROM enrollment e,
21 grade g, grade_type gt
22 WHERE e.section_id = i_section_id
23 AND e.student_id = g.student_id
24 AND e.student_id = i_student_id
25 AND e.section_id = g.section_id
26 AND g.grade_type_code =
gt.grade_type_code
27 GROUP BY gt.description ;
28 BEGIN
29 FOR r_student IN c_student
30 LOOP
31 DBMS_OUTPUT.PUT_LINE(CHR(10));
32 DBMS_OUTPUT.PUT_LINE(r_student.first_name||
33 ' '||r_student.last_name);
34 FOR r_course IN
c_course(r_student.student_id)
35 LOOP
36 DBMS_OUTPUT.PUT_LINE
('Grades for course :'||
37 r_course.description);
38 FOR r_grade IN c_grade(r_course.sec_id,
39 r_student.student_id)
40 LOOP
41 DBMS_OUTPUT.PUT_LINE(r_grade.num_grd||
42 ' '||r_grade.grd_desc);
43 END LOOP;
44 END LOOP;
45 END LOOP;
46 END;

cursor_example.txt

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

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

مشكور جدآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآآ

ايهاب وجدى

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

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

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

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

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

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.