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

بتاريخ:

اعانى من حذف بعض البيانات عن طريق المستخدمين 

رجاء ارسال طريقة لمعرفة المستخدم الحازف للبيان وايضا تاريخ الحذف ورقم العملية او القسم والمبلغ المحذوف

اريد المساعدة رجاء فى عمل هذا الجدول 

تم تعديل بواسطة scdc2003

بتاريخ:

use pre-delete or post-delete triggers to insert the old data in another table.

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

use pre-delete or post-delete triggers to insert the old data in another table.

انا عايزه عام على قاعدة البيانات

انا عملته اهوة بس بيدى خطأ

create or replace TRIGGER orders_after_delete
AFTER DELETE
    ON drug_bill
    FOR EACH ROW
DECLARE
   v_username varchar2(10);
BEGIN


    SELECT user INTO v_username FROM dual;


    INSERT INTO orders


     (BILL_NO, PATIENT_CODE, BILL_DATE, DEPTNO,TOTAL, DELETE_USER, DELETE_DATE)


    VALUES


     ( :old.BILL_NO,
       :old.PATIENT_CODE,
       :old.BILL_DATE,
       :old.DEPTNO,
      :old.TOTAL,
 v_username,
       sysdate)
where
BILL_NO=:old.BILL_NO and
PATIENT_CODE=:old.PATIENT_CODE and
BILL_DATE=:old.BILL_DATE and
DEPTNO=:old.DEPTNO and 
total=:old.TOTAL ;
end;
بتاريخ:

لما يظهر خطأ ابقى ابحث عنه الاول , وقلنا ايه هو عشان نقدر نفيدك.

- user ايه الى بتجيبه من الـ dual؟

- where condition فى جملة insert ازاى؟

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

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

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

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

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

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.