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

Assigning Sequence numbers to Records

Featured Replies

بتاريخ:

Al salamo 3alaykom


I wanna to Assign A sequence numbers to an item in a
Form , i tried by this method : [/align



I create a pre-insert trigger and i wrote this query

Select s_ord_id.nextval
into :s_ord.id
from dual

then i wrote this INSERT Statement
insert into Order

[align=left]Values(:s_ord.id,.............)



But it Didn't work so what is the problem is it the trigger type or what?




I don't wanna to make it by the Initial VALUE method


Waiting from u As Fast As U can :)

بتاريخ:

تستطيع عمل داله تقوم بعمل ذلك

FUNCTION get_emp_id RETURN number IS
v_id number;
BEGIN
select std_id_seq.nextval
into v_id
from dual;
return v_id;
END;



وتقوم بعمل trigger من نوع pre-insert يقوم بجعل قيمة الحقل مساوية للقيمة التى ترجعها هذه الدالة

:emp.empno := get_emp_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.