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

بتاريخ:

يا جماعة عاوز اعرف ال procedure بتاعي حاليا بينفذ اية (علشان اعرف هو بيتاخر في انهي مرحلة)
ال procedure يتكون من عدة جمل تنفذ update , ال body يشبة الاتي

begin
update employees set sal=1000 where employee_id =100;
"اريد هنا ان تظهر الرسالة التي تبين ان عملية ال update علي جدول ال employees انتهت"
dbms_output.put_line('the table employees is updated successfully');
update departments set location_id=2000 where department_id=120;
dbms_output.put_line('the table departments is updated successfully');
;end



المشكلة ان الرسائل بتظهر بعد الكود مايتنفذ و يكون الشكل كالاتي:

the table employees is updated successfully

the table departments is updated successfully

pl/sql  completed successfully



اللي عاوزة ان ال procedure يطلع الرسائل اولا باول

طبعا انا بكتب set serveroutput on في ال sessionاللي بنفذ من خلالها ال procedure

"انا حاليا الفكرة اللي عندي اني اعمل variable يتم وضع ال sysdate فية بعد كل عملية و اقوم بطبعة بعد كل عملية
و الكود سيكون كالاتي

declare
(xx varchar2(200;
begin
update employees set sal=1000 where employee_id =100;
select to_char(sysdate,'yyyy-mm-dd  hh24:mi:ss') into xx from dual;
(dbms_output.put_line(xx;
dbms_output.put_line('the table employees is updated successfully');
select to_char(sysdate,'yyyy-mm-dd  hh24:mi:ss') into xx from dual;
update departments set location_id=2000 where department_id=120;
dbms_output.put_line(xx)
dbms_output.put_line('the table departments is updated successfully');
end;



أعتقد ان فية عند اخوانا ذوي الخبرة حلول افضل اتمني منكم ان تمدوني بها و لكم جزيل الشكر

و السلام عليكم

بتاريخ:

DECLARE
V_CHANGE NUMBER;
BEGIN
UPDATE STATMENT .................................;
V_CHANGE=SQL%ROWCOUNT;
DBMS_OUTPUT.PUT_LINE(TO_CHAR(V_CHANG));
UPDATE STATMENT ..................................;
V_CHANGE=SQL%ROWCOUNT;
DBMS_OUTPUT.PUT_LINE(TO_CHAR(V_CHANG));
END;
/
[sql/]
بالتوفيق

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

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

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

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

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

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.