Daily Quizzes
Mock Tests
Download MCQs Free PDF
Question
Computer Knowledge

Which is/are true about the triggers in SQL?

I. Trigger is used to ensure referential integrity constraint.

II. Trigger is used to start a task automatically when certain condition is met.

Only I

Only II

Both I and II

None of these

SQL में ट्रिगर्स के बारे में कौन सा कथन सत्य है?

I. निर्देशात्मक समाग्रता अवरोध सुनिश्चित करने के लिए ट्रिगर का उपयोग किया जाता है।

II. ट्रिगर का उपयोग किसी फंक्शन को स्वचालित रूप से शुरू करने के लिए किया जाता है जब भी कोई शर्त पूरी होती है।

केवल I

केवल II

I और II दोनों

इनमें से कोई नहीं

View Answer & Solution
Correct Answer: C (Both I and II) C (I और II दोनों)
Detailed Solution:

Solution

Oracle lets users define procedures called triggers that run implicitly when an INSERT, UPDATE, or DELETE statement is issued against the associated table or when database system actions occur

These procedures can be written in PL/SQL, it ensures integrity constraint and can used to self-start a task

Solution

Oracle उपयोगकर्ताओं को ट्रिगर्स नामक प्रक्रियाओं को परिभाषित करने देता है जो अंतर्निहित रूप से चलाते हैं जब कोई INSERT, UPDATE, या DELETE कथन संबंधित तालिका के विरुद्ध या जब डेटाबेस सिस्टम क्रियाएँ होती हैं।

इन प्रक्रियाओं को पीएल/एसक्यूएल में लिखा जा सकता है, यह अखंडता की बाधा सुनिश्चित करता है और किसी कार्य को स्वयं शुरू करने के लिए उपयोग किया जा सकता है।

India’s #1 Learning Platform
Start Complete Exam Preparation
Daily Live MasterClasses
Practice Question Bank
Mock Tests & Quizzes
Trusted by 8.1 Crore+ Students

Exam Preparation Simplified

Learn Practice Analyse Improve
Get Started Free
Download the App

Trusted by 8.1 Crore+ Students

Enquire Now

Please share a few details to view the answer and solution.

Illustration of two people having a discussion

We're Here for You! Get in Touch with Class24 for All Your Needs!

Disclaimer: Your privacy is important to us. We will not share your information with third parties.