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

مشكلة فى Post_query

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته
لو سمحتم انا كنت عامل post_query تريجر وده وظيفته انه بعد لما بعمل استعلام بيعرض description للid وبيشتغل كويس الحمدلله مفيش مشكلة
ولكن لما اعمل اكتر من جملة select فى نفس التريجر بيدينى
frm-40753:post_query trigger raised unhandled exception ora-06502
وكل لما اضغط ok
يعرض id جديد وتظهر مرة تانية الرسالة لغاية لما كل الاشخاص المسجلين فى الجدول ينتهوا
لما بعمل جملة واحدة بس بيشتغل كويس لما بحط اكتر من جملة بتظهر المشكلة دى

ياريت حد يقولى المشكلة فين والكود اهو اللى انا عمله

if :country_id is not null then
begin select name_en
into :member.country from country
where id=:member.country_id;
exception
when no_data_found then
null;
end;
end if;


if :job_id is not null then
begin select name_en
into :member.job_name from job
where job_id=:member.job_id;
exception
when no_data_found then
null;
end;
end if;



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

بتاريخ:

السلام عليكم.
ده تعريف الخطأ إللي ظهرلك

ORA-06502
PL/SQL: numeric or value errorstring

Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).

Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.



تأكد من حجم الحقل :member.job_name

بتاريخ:

Review the size of the items that you return in it , and their data type

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

جزاكم الله خيرا جميعا
فعلا المشكلة كانت فى الtype بتاع الايتم جزاكم الله خيرا

بتاريخ:

المشكلة انحلت كما ذكرت ولكن لدي ملاحظات
1 - الكود المكتوب ينبغي أن يكون محصورا بين begin و end على مجمل الكود كالتالي
begin
if ... then
begin
...
end;
end if;

begin
...
end;
end;

2 - إذا كنت تستخدم هذا الكود في شاشات أخرى فالأولى أن تضعه في function
في قاعدة البيانات

3 - تجنب post_query
ما استطعت فهذا سيحسن أداء البرنامج

4 - طريقة التجنب غير خصائص العنصر الذي ستظهر عليه المسمى
display_item
باختيار formula
والخانة التي تحته استدع function
سواء كانت على قاعدة البيانات أو على الفورم

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

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

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

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

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

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.