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

اية الفرق بين ال Record And Row؟

Featured Replies

بتاريخ:

عايز اعرف اية الفرق بين ال record and row لان فية فى البى ال متغير من نوع record
ومتغير من نوع %row type
ومش عارف افرق بينهم ارجو المساعدة؟

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

بتاريخ:

مرحبا
الفرق بسيط و هو انه في حالة الـ record انت بتعرف الحقول,اما في الـ rowtype بيتعرف على الحقول لحاله.
مثال:

DECLARE
  dept_info departments%ROWTYPE;
BEGIN -- department_id, department_name, and location_id are the table columns
-- The record picks up these names from the %ROWTYPE
 dept_info.department_id := 300;
 dept_info.department_name := 'Personnel';
 dept_info.location_id := 1700;
-- Using the %ROWTYPE means we can leave out the column list
-- (department_id, department_name, and location_id) from the INSERT statement
 INSERT INTO departments VALUES dept_info;
END;


DECLARE
  TYPE EmpRec IS RECORD (last_name   employees.last_name%TYPE, 
                         salary      employees.salary%TYPE);
  emp_info EmpRec;
  emp_id   NUMBER := 100;
BEGIN UPDATE employees SET salary = salary * 1.1 WHERE employee_id = emp_id
     RETURNING last_name, salary INTO emp_info; DBMS_OUTPUT.PUT_LINE('Just gave a raise to ' || emp_info.last_name ||
     ', who now makes ' || emp_info.salary);
  ROLLBACK;
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.