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

بتاريخ:

create table departments(dept_id number(4) constraint d_id praimary key,
dept_name varchar2(30) constraint d_name not null,
manager_id number(4) ,
loc_id number(3) constraint  d_locid foreign key 
references locations(loc_id));




create table locations(loc_id number(3) constraint location_id primary key,
adrres varchar2(30) constraint add_nn not null);

بتاريخ:

عفواً بس وين رسالة الخطأ... :rolleyes: :P

بتاريخ:

create table departments(dept_id number(4) constraint d_id primary key,
dept_name varchar2(30) constraint d_name not null,
manager_id number(4) ,
loc_id number(3)constraint d_locid
REFERENCES locations(loc_id) )


راجع الماتريل فقط ستجد هنا بعض الاخطاء البسيطة
الخطأ في الجدول الاول والثاني صحيح

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

بتاريخ:
create table departments(dept_id number(4) constraint d_id praimary key,
dept_name varchar2(30) constraint d_name not null,
manager_id number(4) ,
loc_id number(3) constraint  d_locid foreign key 
references locations(loc_id));




create table locations(loc_id number(3) constraint location_id primary key,
adrres varchar2(30) constraint add_nn not null);




اخي العزيز انتا عامل في الجدول الاول References للجدول لسى مش موجود وهو locations

ثانيا خذها نصيحة من اخوك دائما انشاء الجداول ثم اكتب القيود احسن واوضح يعني هيك .

create table locations (
loc_id number(3),
adrres varchar2(30) not null);
alter table locations
add constraint locations_pk primary key(loc_id )
);



وبعدين الجدول الثاني

create table departments(
dept_id number(4),
dept_name varchar2(30) not null,
manager_id number(4) ,
loc_id number(3) 
);
alter table departments
add constraint departments_pk primary key(dept_id );
alter table departments
add constraint departments_Fk foriegn key(loc_id )
refernces  locations (loc_id );



إن شاء الله اكون وصلت الفكرة

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

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

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

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

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

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.