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

How Do I Validate Duplicate Records In Forms

Featured Replies

بتاريخ:



السلام عليكم الاخوة والاخوات الاعزاء

لدي جدول خاص بالكليات يتكون من اسم الجامعة الخاص بالكلية واسم الكلية و السنة الدراسية وحقول اخرى ............

يتم ادخال البيانات من خلال الفورم لكل كلية ولتكن مثلا كلية الهندسة جامعة القاهرة لسنة 2007/ 2008

كيف يمكنني من خلال الفورم ان اعمل check بحيث عند ادخال كلية الهندسة مرة ثانية لجامعة القاهرة ولسنة 2007 /2008 تخبرني رسالة بان القيد مدخل ولايمكن ادخاله مرة ثانية .

بتاريخ:

اخي لنفرض اسم الجدوال collage
وحقل اسم الكلية اسمه co_no
وحقل التاريخ co_date
----------------------------
الان نقوم بكتبه هذا الكود في زر حفظ

declare
x int;
begin
select count(*)into x from collage where c_no=:c_no and c_date=:c_date;
if x >=1 then
message('القيد مدخل ولايمكن ادخاله مرة ثانية ');
message('القيد مدخل ولايمكن ادخاله مرة ثانية ');
else
commit_from;
end if;
end;

بتاريخ:

when-validate-item(on collage item) or pre-insert & pre-update(on the block):

Suppose that we have the following two fields
collage_id , col_year

declare
x number;
begin select count(1) into x from table_name 
where collage_id=:collage_id and col_year=:col_year;

if x > 0 then
message('this entry is duplicated');
else
do what ever you want;
end if;
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.