الانتقال إلى المحتوى

Complex Question 2


hanyfreedom

Recommended Posts

You have an AFTER UPDATE row-level on the table EMP. The
trigger queries the EMP table and inserts the updating
user's information into the AUDIT_TABLE.

What happens when the user updates rows on the EMP table?

A. A compile time error occurs.
B. A runtime error occurs. The effect of trigger body 
and the triggering statement are rolled back.
C. A runtime error occurs. The effect of trigger body
is rolled back, but the update on the EMP table takes place.
D. The trigger fires successfully. The update on the EMP table 
occurs, and data is inserted into theAUDIT_TABLE table.
E. A runtime error occurs. The update on the EMP table 
does not take place, but the insert into the AUDIT_TABLE occurs.
رابط هذا التعليق
شارك

السلام عليكم و رحمة الله -تعالى- و بركاته,
الاخ العزيز هاني, هذا السؤال موجود في ملف الامتحانات باجابة 'B' و هي اجابة غير صحيحة و الجواب الصحيح هو 'D'.

الشرح:-
الزناد الموجود في الجدول EMP من نوع " كل صف" row-level و هو يقوم بمراقبة جميح اجراءات DML التي ينفذها المبرمج على جدول EMP و من ثم يقوم بادخال بيانات في جدول AUDIT_TABLE حسب اوامر DML التي اجريت في جدول EMP.

رابط هذا التعليق
شارك

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

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

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

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

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