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

بتاريخ:

عندي مشكلة في الكود الذي يزيد الرقم اوتوماتيك
عند ادخال RECOD جديد

وهذا هو الكود

select max(nvl(ORG_ID,0))+1
into :ORG_ID

;from CUSTOMER_ORGANIZATION

ويظهر خطأ

BAD BIND VARIABLE ORG_ID



أتمني الرد علي هذه المشكلة

وجزاكم الله خيرا

بتاريخ:

nadera

جربي هالكود

declare
new_custid s_customer.id%type;
begin
select max (id) into new_custid from s_customer;
	new_custid := new_custid +1;
:s_customer.id := new_custid;
message ('the id for this new customer is:'|| to_char (:s_customer.id));
:s_customer.id := new_custid;
end;





اختك
lune







نسيت اقولحطي هالكود في ال
pre insert trigger
في مستوى الفورم

اختك
lune


nadera

جربي هالكود

declare
new_custid s_customer.id%type;
begin
select max (id) into new_custid from s_customer;
	new_custid := new_custid +1;
:s_customer.id := new_custid;
message ('the id for this new customer is:'|| to_char (:s_customer.id));
:s_customer.id := new_custid;
end;





نسيت اقول حطي هالكود في ال
pre insert trigger
في مستوى الفورم

اختك
lune









nadera

جربي هالكود

declare
new_custid s_customer.id%type;
begin
select max (id) into new_custid from s_customer;
	new_custid := new_custid +1;
:s_customer.id := new_custid;
message ('the id for this new customer is:'|| to_char (:s_customer.id));
:s_customer.id := new_custid;
end;





نسيت اقولحطي هالكود في ال
pre insert trigger
في مستوى الفورم


اختك
lune








nadera

جربي هالكود

declare
new_custid s_customer.id%type;
begin
select max (id) into new_custid from s_customer;
	new_custid := new_custid +1;
:s_customer.id := new_custid;
message ('the id for this new customer is:'|| to_char (:s_customer.id));
:s_customer.id := new_custid;
end;




نسيت اقولحطي هالكود في ال
pre insert trigger
في مستوى الفورم
اختك
lune





nadera

جربي هالكود

declare
new_custid s_customer.id%type;
begin
select max (id) into new_custid from s_customer;
	new_custid := new_custid +1;
:s_customer.id := new_custid;
message ('the id for this new customer is:'|| to_char (:s_customer.id));
:s_customer.id := new_custid;
end;




نسيت اقولحطي هالكود في ال
pre insert trigger
في مستوى الفورم

اختك
lune

بتاريخ:

السلام عليكم ..

اعتقد ان المشكلة هي ان الحقل ORG_ID موجود في اكثر من بلك في نفس الفورم لذلك يكتب بالشكل التالي

:CUSTOMER_ORGANIZATION.ORG_ID

بحيث يصبح الكود كالتالي :

select NVL(max(ORG_ID),0)+1 into :CUSTOMER_ORGANIZATION.ORG_ID from CUSTOMER_ORGANIZATION;

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

السلام عليكم ورحمة الله وبركاته



شكرا جزيلا

جزاك الله خيرا

فعلا المشكلة كانت في ذكر اسم ال block



شكرا جزيلا أختي lune



جزاك الله خيرا علي اهتمامك

ربنا يعزك ويكرمك

وسوف اجرب هذا الكود ايضا

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

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

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

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

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

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.