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

Sequence

Featured Replies

بتاريخ:

hi everybody, I would like if possible, I create a table where there is a sequence that increments automatically as soon as you register a new lighne,I do not know how,
thank you very much

بتاريخ:

تفضل اخي

BEGIN
SELECT MAX(NVL(P_NO,0)+1)
INTO :BLK1.P_NO 
FROM PART_SERVC;
EXCEPTION WHEN OTHERS THEN
:BLK1.P_NO:=1;
END;
IF NVL(:BLK1.P_NO,0)=0 THEN
:BLK1.P_NO:=1;
END IF;



بالتوفيق

بتاريخ:

أخي الكريم pali.oracle
الاخت تستخدم ال squence كا object وليس عمل كود لتوليد رقم تزايدي ولاحظ هذا منتدى ال pl-sql وليس الفورم
عذرا كي لايحدث تشتت

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

salvation, my question is how to create a parameter that increases automatically when you record a new line in the tableto better explain I created a table person (id, name, surname, age ,........) what I would like to add a new person incrementing the id to point to the new line and record the information provided

بتاريخ:

السلام عليكم
لادخال القيمة التالية من ال squence يبقى كده

insert into person(id,name,..,....) values(yoursquencename.nextval,'mohammed',..,.,,.);


etc

المفروض تكتبي في الخانة التي سيتم تزايدها من خلال ال squence ===> اسم السيكونس وبعدين nextval
لو عندك سيكونس اسمها sq
هتكتبي كده
sq.nextval

وهكذا

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

thannnnnnnks a lot ;
allah yajazikome khayre

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

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

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

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

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

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.