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

كيف يمكن ربط مفتاح بمفاتيح اساسية في جدول واحد

Featured Replies

بتاريخ:

كيف يمكنني ان اربط مفتاح اساسي في جدول بمفتاح اساسي في جدول آخر علما ان المفتاح الهدف جزء من مفتاحين اساسيين في جدول واحد ؟

بتاريخ:

لعلك تقصد مفتاح أساسي يتكون من حقل واحد مع مفتاح يتكون من حقلين ، هذا لا يمكن لأن من شروط العلاقات تساوي عدد الحقول و نوعها و ترتيبها ...

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

  • بعد 3 شهور...
بتاريخ:

يمكن الربط باستخدام

The FOREIGN KEY Constraint
وهذا شرح مختصر عنه

- Creates a primary key for the table; only one primary key is allowed for each table
- Designates a column or combination of columns as a foreign key
- Establishes a relationship between the primary or unique key in the same table or between tables
- Is defined at either the table or column constraint level
- Must match an existing value in the parent table or be NULL
- Examples :
 ... dept_no NUMBER(7)
CONSTRAINT fk_deptno REFERENCES s_dept(id)
ON DELETE CASCADE);
 ... dept_no NUMBER(7),….
CONSTRAINT fk_deptno FOREIGN KEY (dept_no)
REFERENCES s_dept(id) );
 ... areaco NUMBER (4),phoneno NUMBER(7),….
CONSTRAINT fk_areaco_phoneno FOREIGN KEY
(areaco,phoneno) REFERENCES customers (areaco, phoneno) );
ON DELETE CASCADE
Allows deletion in the parent table and deletion of the dependent rows in the child table.

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

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

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

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

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

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.