Computer AwarenessModerateIBPS SO IT Officer

A bank wants a log entry to be written automatically whenever a row in the ACCOUNTS table is updated, without the application doing it. Which database object does this?

  1. A. A view
  2. B. An index
  3. C. A trigger
  4. D. A cursor

Correct answer: C. A trigger

A trigger is code the DBMS runs automatically on an INSERT, UPDATE or DELETE event. A cursor steps through query results one row at a time.

हिंदी में

एक बैंक चाहता है कि ACCOUNTS तालिका की किसी पंक्ति के अद्यतन होने पर लॉग प्रविष्टि अपने आप लिखी जाए, एप्लिकेशन के किए बिना। यह कौन-सा डेटाबेस ऑब्जेक्ट करता है?

  1. A. व्यू
  2. B. इंडेक्स
  3. C. ट्रिगर
  4. D. कर्सर

उत्तर: C. ट्रिगर वह कोड है जिसे DBMS INSERT, UPDATE या DELETE घटना पर अपने आप चलाता है। कर्सर क्वेरी परिणामों को एक-एक पंक्ति करके पार करता है।

More Computer Awareness questions

Exams that ask this topic