بتاريخ: 20 أكتوبر 200817 سنة comment_141152 الرجاء المساعدة هذا الكود لا يعمل هام جدا.........ان قيمة الحقل التي يتم المقارنة بها تكون اخر قيمة في الجدول لكل شخص..... declare cursor c is select bra_code,backup_log from backup_log where bra_code in (select bra_code from branches) and to_char(log_date)=to_char(trunc(sysdate)); v c%rowtype; begin open c; loop last_recorde; fetch c into v; if v.backup_log='u03/dbase5/history01.dbf' then update backup_log set STATUS= 'Success Procedure' where bra_code=v.bra_code and log_date=trunc(sysdate); commit; else update backup_log set STATUS= 'Failed Procedure' where bra_code=v.bra_code and log_date=trunc(sysdate); commit; end if; exit when c%notfound; end loop; close c; end; تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.