Database Transactions: Definition, Properties and Transaction States Notes in Hindi & English : डेटाबेस ट्रांजैक्शन: परिभाषा और ट्रांजैक्शन स्टेट्स (Active, Committed) और 20 महत्वपूर्ण MCQ प्रश्न (Rajasthan IT Exam)

Post a Comment

PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Database Transactions: Definition, Properties and Transaction States (डेटाबेस ट्रांजैक्शन: परिभाषा और ट्रांजैक्शन स्टेट्स (Active, Committed)) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।

Overview: A database transaction is an indivisible logical unit of work comprising read and write operations that transitions a database from one consistent state to another. During execution, a transaction progresses through distinct lifecycle states—Active, Partially Committed, Committed, Failed, Aborted, and Terminated—governed by the Transaction Manager and Recovery Manager.

अध्याय सार: डेटाबेस ट्रांजैक्शन रीड व राइट ऑपरेशन्स की एक अविभाज्य तार्किक इकाई (Logical Unit of Work) है जो डेटाबेस को एक सुसंगत अवस्था से दूसरी सुसंगत अवस्था में ले जाती है। निष्पादन के दौरान यह Active, Partially Committed, Committed, Failed, Aborted और Terminated जैसी अवस्थाओं (States) से गुजरती है।

Database Transactions: Definition, Properties and Transaction States: Detailed Notes & Architecture (डेटाबेस ट्रांजैक्शन: परिभाषा और ट्रांजैक्शन स्टेट्स (Active, Committed))

1. Transaction Definition & Buffer Read/Write Operations (ट्रांजैक्शन की परिभाषा और बफर रीड/राइट ऑपरेशन्स)

[EN] A transaction is a single logical unit of execution (such as transferring funds or booking an airline seat) initiated by BEGIN TRANSACTION and ended by COMMIT or ROLLBACK. Internally, DBMS operations reduce to read_item(X) and write_item(X): read(X) loads the disk block holding X into the main-memory buffer pool if absent and copies X to a local variable, while write(X) updates the value in the memory buffer block—actual disk writing may be deferred by the buffer manager.

[HI] ट्रांजैक्शन SQL निर्देशों (जैसे खाते से राशि अंतरण) की एक तार्किक इकाई है जो BEGIN से प्रारंभ होकर COMMIT या ROLLBACK पर समाप्त होती है। आंतरिक स्तर पर read(X) डिस्क ब्लॉक को मेन-मेमोरी बफर में लाकर वेरिएबल में पढ़ता है, जबकि write(X) केवल मेमोरी बफर के मान को अपडेट करता है—डिस्क पर स्थायी लेखन बफर मैनेजर द्वारा बाद में किया जाता है।

2. Active & Partially Committed States (एक्टिव (Active) और आंशिक कमिटेड (Partially Committed) स्टेट्स)

[EN] Every transaction begins in the Active state and remains Active while executing its SELECT, INSERT, UPDATE, or DELETE statements. Immediately after the very last statement executes, the transaction enters the Partially Committed state. At this checkpoint, updated data may still reside solely in volatile memory buffers and deferred constraints or log-force checks have not yet completed, meaning a power failure or constraint violation can still force transition to Failed.

[HI] शुरुआत से लेकर अंतिम कथन चलने तक ट्रांजैक्शन Active अवस्था में रहता है। अंतिम कथन के समाप्त होते ही यह Partially Committed अवस्था में प्रवेश करता है; इस चरण में परिवर्तन अभी भी मुख्यतः वोलेटाइल मेमोरी बफर में होते हैं और स्थायी डिस्क/लॉग पर पक्के नहीं हुए होते—अतः यहाँ भी क्रैश या कन्स्ट्रेंट फेल होने पर यह रद्द हो सकता है।

3. Committed, Failed, Aborted & Terminated States (कमिटेड, फेल्ड, अबॉर्टेड और टर्मिनेटेड अवस्थाएं)

[EN] Once recovery log records and commit markers flush safely to stable non-volatile storage, the transaction moves from Partially Committed to Committed—making its updates permanent and irreversible via ROLLBACK. If any hardware crash, deadlock victim selection, division by zero, or explicit ROLLBACK occurs during Active or Partially Committed, it enters Failed. The Recovery Manager then undoes all partial changes to reach Aborted (where DBMS either restarts or kills the job), and finally releases resources in Terminated.

[HI] जब ट्रांजैक्शन के लॉग रिकॉर्ड स्थायी (Non-volatile) स्टोरेज पर सुरक्षित रूप से सेव हो जाते हैं, तो वह Committed अवस्था में आता है जिसके बाद ROLLBACK संभव नहीं होता। यदि Active या Partially Committed में कोई क्रैश, डेडलॉक या ROLLBACK हो जाए तो ट्रांजैक्शन Failed अवस्था में जाता है। इसके बाद पुराने मान बहाल (Undo) करके वह Aborted अवस्था में पहुंचता है (जहाँ से उसे Restart या Kill किया जाता है) और अंततः संसाधन मुक्त होकर Terminated अवस्था आती है।

4. SQL Transaction Control Language (TCL) & Implicit Commits (SQL TCL कमांड्स और इम्प्लिसिट कमिट नियम)

[EN] SQL controls transactions using TCL commands: START TRANSACTION (or BEGIN), COMMIT, ROLLBACK, and SAVEPOINT (allowing partial rollback via ROLLBACK TO savepoint_name while keeping the transaction Active). Beware an important exam rule: executing DDL commands (CREATE, ALTER, DROP, TRUNCATE) or DCL commands (GRANT, REVOKE) inside most RDBMSs like MySQL and Oracle triggers an implicit COMMIT of the current active transaction.

[HI] SQL में ट्रांजैक्शन को START TRANSACTION, COMMIT, ROLLBACK और SAVEPOINT कमांड्स से नियंत्रित किया जाता है। SAVEPOINT तक वापस जाने (ROLLBACK TO sp1) पर ट्रांजैक्शन समाप्त नहीं होता बल्कि Active बना रहता है। परीक्षा के लिए महत्वपूर्ण: अधिकांश डेटाबेस (जैसे MySQL व Oracle) में DDL कमांड (CREATE, DROP, TRUNCATE) चलाते ही चालू ट्रांजैक्शन स्वतः Implicit Commit हो जाता है।

Syntax, Formula & Technical Example (Database Transactions: Definition, Properties and Transaction States)

START TRANSACTION;                -- State: Active
UPDATE Accounts SET bal = bal - 500 WHERE id = 101;
SAVEPOINT sp_debit;               -- Still Active
UPDATE Accounts SET bal = bal + 500 WHERE id = 202;
-- If credit fails: ROLLBACK TO sp_debit; (remains Active)
-- Else reaches final statement -> Partially Committed
COMMIT;                           -- Durable log flush -> Committed -> Terminated

Database Transactions: Definition, Properties and Transaction States Quick Reference & Comparison Table

Transaction StateEntry Condition / TriggerPossible Next State(s)
ActiveBegins execution of read/write SQL operationsPartially Committed OR Failed
Partially CommittedFinal statement finished; changes still in buffer/pending flushCommitted OR Failed
CommittedDurable commit log written safely to non-volatile diskTerminated (irreversible via ROLLBACK)
AbortedAll partial updates undone via log after entering FailedTerminated (via Kill) OR Active (via Restart)

Database Transactions: Definition, Properties and Transaction States Top 20 Bilingual MCQs with Answers

Q1. In the standard transaction state diagram, which state is entered immediately after the final statement of a transaction executes, before durable disk/log flushing completes?

(मानक ट्रांजैक्शन स्टेट आरेख में ट्रांजैक्शन का अंतिम कथन चलते ही (डिस्क पर स्थायी फ्लश होने से ठीक पहले) कौन सी अवस्था आती है?)

(A) Aborted

(B) Terminated

(C) Partially Committed

(D) Committed

Correct Answer: (C)

[EN] Finishing the last operation moves the transaction to Partially Committed; only after log records flush durably does it reach Committed.

[HI] अंतिम स्टेटमेंट पूरा होते ही ट्रांजैक्शन Partially Committed अवस्था में आता है; लॉग के स्थायी होने पर ही वह Committed बनता है।

Q2. Can a transaction move from the 'Partially Committed' state to the 'Failed' state?

(क्या कोई ट्रांजैक्शन 'Partially Committed' अवस्था से 'Failed' अवस्था में जा सकता है?)

(A) No — once Partially Committed, only Committed is possible

(B) No — only Active transactions can fail

(C) Yes — if a power crash, disk error, or deferred constraint failure occurs before durable commit completes

(D) Yes — only when the user runs SAVEPOINT

Correct Answer: (C)

[EN] Until log records and commit validation succeed on stable storage, Partially Committed transactions can still fail and roll back.

[HI] जब तक लॉग रिकॉर्ड स्थायी स्टोरेज पर पक्के न हो जाएं, तब तक Partially Committed अवस्था से भी ट्रांजैक्शन Failed में जा सकता है।

Q3. Once a transaction reaches the 'Committed' state, how can its effects be undone if a user discovers a business mistake?

('Committed' अवस्था में पहुंचने के बाद यदि कोई व्यावसायिक गलती पता चले, तो ट्रांजैक्शन के प्रभाव को कैसे सुधारा जाता है?)

(A) By rebooting the database server

(B) Only by executing a new compensating transaction (ROLLBACK can no longer undo it)

(C) By transitioning directly from Committed to Aborted

(D) By executing ROLLBACK immediately

Correct Answer: (B)

[EN] Committed changes are permanent; standard ROLLBACK only undoes Active or Failed transactions, so a reverse/compensating transaction is required.

[HI] Committed होने के बाद ROLLBACK काम नहीं करता; बदलाव उलटने के लिए एक नया क्षतिपूर्ति ट्रांजैक्शन (Compensating Transaction) चलाना पड़ता है।

Q4. After a transaction enters the 'Aborted' state (all changes rolled back), what two options does the DBMS have?

('Aborted' अवस्था (सभी परिवर्तन अनडू होने) के बाद DBMS के पास कौन से दो विकल्प होते हैं?)

(A) Delete the database schema OR truncate logs

(B) Move directly to Committed OR Partially Committed

(C) Pause indefinitely OR skip COMMIT

(D) Restart the transaction (if external/deadlock error) OR Kill the transaction (if internal logic error)

Correct Answer: (D)

[EN] If aborted due to deadlock or hardware transient error, the DBMS may restart it; if due to invalid input/constraint logic error, it kills it.

[HI] डेडलॉक या सिस्टम त्रुटि से Aborted होने पर उसे Restart किया जा सकता है, या आंतरिक तार्किक त्रुटि होने पर Kill (समाप्त) किया जाता है।

Q5. What happens to the transaction state when you execute 'ROLLBACK TO savepoint_name;' in SQL?

(SQL में 'ROLLBACK TO savepoint_name;' चलाने पर ट्रांजैक्शन की अवस्था पर क्या प्रभाव पड़ता है?)

(A) The changes before the savepoint are permanently Committed

(B) The entire transaction moves to Aborted and Terminated

(C) The database server shuts down

(D) Partial work after the savepoint is undone, and the transaction remains Active

Correct Answer: (D)

[EN] SAVEPOINT enables partial undo inside an ongoing transaction without terminating or committing it.

[HI] SAVEPOINT केवल सेवपॉइंट के बाद वाले काम को अनडू करता है और ट्रांजैक्शन Active ही बना रहता है।

Q6. Which pair of SQL commands belong strictly to Transaction Control Language (TCL)?

(निम्नलिखित में से कौन से कमांड्स मुख्यतः Transaction Control Language (TCL) श्रेणी में आते हैं?)

(A) COMMIT, ROLLBACK, and SAVEPOINT

(B) SELECT, PROJECT, and JOIN

(C) CREATE, ALTER, and DROP

(D) GRANT, REVOKE, and DENY

Correct Answer: (A)

[EN] TCL manages transaction boundaries (COMMIT, ROLLBACK, SAVEPOINT), whereas DDL manages schemas and DCL manages permissions.

[HI] COMMIT, ROLLBACK और SAVEPOINT TCL कमांड हैं; CREATE/DROP DDL हैं और GRANT/REVOKE DCL हैं।

Q7. What does the low-level database operation write_item(X) actually guarantee at the moment it executes?

(निम्न-स्तरीय डेटाबेस ऑपरेशन write_item(X) चलते समय तुरंत क्या घटित होता है?)

(A) It deletes the log record for X

(B) It automatically commits the entire transaction

(C) It immediately flushes X directly to magnetic disk platters

(D) It copies the new value of X into the main-memory buffer page (disk write may be deferred)

Correct Answer: (D)

[EN] For performance, write(X) updates the memory buffer pool; the buffer manager later writes dirty pages to disk unless forced.

[HI] प्रदर्शन के लिए write(X) मान को मेन-मेमोरी बफर पेज में बदलता है; वास्तविक डिस्क राईट बफर मैनेजर द्वारा बाद में होता है।

Q8. In MySQL and Oracle, what happens to an open uncommitted transaction if a user runs TRUNCATE TABLE or ALTER TABLE?

(MySQL और Oracle जैसे डेटाबेस में यदि किसी खुले ट्रांजैक्शन के बीच में TRUNCATE TABLE या ALTER TABLE चला दिया जाए, तो क्या होता है?)

(A) An implicit COMMIT executes first, permanently saving all prior uncommitted changes in that transaction

(B) The transaction switches to Read-Only mode

(C) An automatic ROLLBACK occurs

(D) The DDL statement is ignored silently

Correct Answer: (A)

[EN] Most RDBMSs execute an implicit commit before and/or after DDL statements, making DDL operations non-rollbackable there (unlike PostgreSQL where DDL is transactional).

[HI] अधिकांश RDBMS (MySQL/Oracle) में DDL कमांड चलते ही पहले के अनकमिटेड बदलाव स्वतः Implicit Commit हो जाते हैं।

Q9. Which state marks the final cleanup point reached from BOTH 'Committed' and 'Aborted' states?

(कौन सी अंतिम अवस्था 'Committed' और 'Aborted' दोनों अवस्थाओं के बाद आती है?)

(A) Suspended

(B) Partially Committed

(C) Failed

(D) Terminated

Correct Answer: (D)

[EN] Both successful completion (Committed) and rollback completion (Aborted) conclude in the Terminated state as system info is freed.

[HI] सफल (Committed) या विफल (Aborted) दोनों ही परिस्थितियों में अंततः संसाधन मुक्त होकर Terminated अवस्था आती है।

Q10. Why is the 'Failed' state distinct from the 'Aborted' state in the DBMS transaction model?

(DBMS ट्रांजैक्शन मॉडल में 'Failed' अवस्था को 'Aborted' अवस्था से अलग क्यों माना गया है?)

(A) Failed happens only on SELECT queries; Aborted happens on DELETE

(B) There is no difference; Aborted transitions to Failed

(C) In Failed, the error has occurred but undo rollback has not finished yet; Aborted is reached only after all partial changes are completely rolled back

(D) Failed means committed to disk; Aborted means committed to RAM

Correct Answer: (C)

[EN] Undoing partial updates takes recovery time via log traversal, separating failure detection (Failed) from completed cleanup (Aborted).

[HI] Failed का अर्थ त्रुटि का पता चलना है (अनडू अभी बाकी है), जबकि सभी आंशिक बदलावों को पूरी तरह अनडू करने के बाद ही Aborted अवस्था आती है।

Q11. Which DBMS component is primarily responsible for tracking Active/Committed/Aborted states and coordinating recovery?

(ट्रांजैक्शन की अवस्थाओं (Active, Committed, Aborted) व लॉगिंग/अनडू का समन्वय मुख्यतः किन DBMS घटकों द्वारा होता है?)

(A) Data Dictionary Compiler only

(B) Query Parser and Lexical Analyzer only

(C) ER Diagrammer

(D) Transaction Manager and Recovery Manager

Correct Answer: (D)

[EN] The Transaction Manager coordinates execution with the Concurrency Control Manager and Recovery Manager.

[HI] Transaction Manager और Recovery Manager ट्रांजैक्शन के जीवनचक्र व अनडू/रीडू को संभालते हैं।

Q12. If transaction T executes 5 updates, crashes after the 3rd update, and enters Failed -> Aborted, what happens to those 3 updates?

(यदि ट्रांजैक्शन T 5 अपडेट्स में से 3 करने के बाद क्रैश हो जाए और Failed से Aborted में जाए, तो उन 3 अपडेट्स का क्या होगा?)

(A) Only the 1st update is saved

(B) The 3 updates stay permanently while the remaining 2 are skipped

(C) All 3 partial updates are rolled back using the UNDO log so none appear in the database

(D) All 3 updates are moved to Partially Committed

Correct Answer: (C)

[EN] A transaction is an indivisible unit; aborting restores the pre-transaction state completely.

[HI] ट्रांजैक्शन अविभाज्य इकाई है, अतः Aborted होने पर लॉग द्वारा शुरुआती 3 अधूरे अपडेट भी पूरी तरह हटा (Undo) दिए जाते हैं।

Q13. Which transition is VALID in the standard 6-state transaction lifecycle diagram?

(मानक 6-अवस्था ट्रांजैक्शन जीवनचक्र आरेख में निम्नलिखित में से कौन सा संक्रमण (Transition) वैध है?)

(A) Committed -> Failed -> Aborted -> Active

(B) Terminated -> Partially Committed -> Active

(C) Active -> Committed -> Partially Committed -> Terminated

(D) Active -> Partially Committed -> Committed -> Terminated

Correct Answer: (D)

[EN] Execution must pass through Partially Committed before Committed, and cannot fail or roll back after Committed.

[HI] सही क्रम Active -> Partially Committed -> Committed -> Terminated है; Committed के बाद पीछे नहीं जा सकते।

Q14. What does 'read_item(X)' check first inside the DBMS buffer manager before reading from physical disk?

(DBMS में read_item(X) चलाने पर भौतिक डिस्क पढ़ने से पहले क्या जांचा जाता है?)

(A) Whether the table has an odd number of rows

(B) Whether the disk block containing X already resides in the main-memory buffer pool

(C) Whether X is encrypted by SSL

(D) Whether all other users have logged out

Correct Answer: (B)

[EN] If the block holding X is already cached in the memory buffer pool, disk I/O is avoided; otherwise the block is fetched into buffer memory.

[HI] यदि X वाला ब्लॉक पहले से मेन-मेमोरी बफर में मौजूद है तो डिस्क रीड की ज़रूरत नहीं पड़ती, अन्यथा उसे डिस्क से बफर में लाया जाता है।

Q15. Which of the following is NOT true about database transactions and their states?

(डेटाबेस ट्रांजैक्शन्स और उनकी अवस्थाओं के बारे में निम्नलिखित में से कौन सा कथन सत्य नहीं (NOT true) है?)

(A) A Committed transaction can always be rolled back directly to Aborted using SQL ROLLBACK

(B) A Partially Committed transaction can still enter the Failed state

(C) A restarted transaction begins execution again from the Active state

(D) A transaction is a single logical unit of work that reads and writes data items

Correct Answer: (A)

[EN] Once Committed, ROLLBACK cannot revert the transaction; only Failed/Active transactions transition to Aborted.

[HI] एक बार Committed हो जाने पर SQL ROLLBACK से उसे वापस Aborted नहीं किया जा सकता—अतः यह कथन गलत है।

Q16. Suppose an application runs two separate UPDATE statements without an explicit BEGIN TRANSACTION when AUTOCOMMIT is ON (default in MySQL/JDBC). How many transactions execute?

(यदि AUTOCOMMIT=ON हो और बिना BEGIN के लगातार दो अलग-अलग UPDATE कथन चलाए जाएं, तो कुल कितने ट्रांजैक्शन निष्पादित होंगे?)

(A) 0 transactions until COMMIT is typed

(B) 2 independent transactions (each UPDATE auto-commits immediately upon completion)

(C) Infinite transactions

(D) 1 combined transaction

Correct Answer: (B)

[EN] With AUTOCOMMIT enabled, every single DML statement executes and commits as its own standalone transaction.

[HI] AUTOCOMMIT ऑन रहने पर प्रत्येक SQL कथन स्वतः एक स्वतंत्र ट्रांजैक्शन की तरह चलकर तुरंत कमिट हो जाता है।

Q17. Within Database Transactions: Definition, Properties and Transaction States, which transaction state directly maps to: "Begins execution of read/write SQL operations"?

(Database Transactions: Definition, Properties and Transaction States में कौन सा Transaction State सीधे "Begins execution of read/write SQL operations" से संबंधित है?)

(A) Active

(B) Partially Committed

(C) Committed

(D) Aborted

Correct Answer: (A)

[EN] In Database Transactions: Definition, Properties and Transaction States, 'Active' handles 'Begins execution of read/write SQL operations' (Partially Committed OR Failed).

[HI] Database Transactions: Definition, Properties and Transaction States में 'Active' का कार्य/विवरण 'Begins execution of read/write SQL operations' (Partially Committed OR Failed) है।

Q18. Which option accurately describes 'Partially Committed' in Database Transactions: Definition, Properties and Transaction States?

(Database Transactions: Definition, Properties and Transaction States के संदर्भ में 'Partially Committed' की सही विशेषता कौन सी है?)

(A) Final statement finished; changes still in buffer/pending flush

(B) Begins execution of read/write SQL operations

(C) All partial updates undone via log after entering Failed

(D) Durable commit log written safely to non-volatile disk

Correct Answer: (A)

[EN] 'Partially Committed' provides 'Final statement finished; changes still in buffer/pending flush' — key point: Committed OR Failed.

[HI] 'Partially Committed' का मुख्य विवरण 'Final statement finished; changes still in buffer/pending flush' है (Committed OR Failed)।

Q19. In Database Transactions: Definition, Properties and Transaction States, identify the correct parameter for the specification: "Durable commit log written safely to non-volatile disk".

(Database Transactions: Definition, Properties and Transaction States में "Durable commit log written safely to non-volatile disk" विवरण किस विकल्प के लिए सही है?)

(A) Active

(B) Committed

(C) Aborted

(D) Partially Committed

Correct Answer: (B)

[EN] 'Committed' corresponds to 'Durable commit log written safely to non-volatile disk' (Terminated (irreversible via ROLLBACK)).

[HI] 'Committed' का संबंध 'Durable commit log written safely to non-volatile disk' (Terminated (irreversible via ROLLBACK)) से है।

Q20. Considering Database Transactions: Definition, Properties and Transaction States, what key behavior defines 'Aborted'?

(Database Transactions: Definition, Properties and Transaction States में 'Aborted' की मुख्य भूमिका या मान क्या है?)

(A) All partial updates undone via log after entering Failed

(B) Durable commit log written safely to non-volatile disk

(C) Begins execution of read/write SQL operations

(D) Final statement finished; changes still in buffer/pending flush

Correct Answer: (A)

[EN] 'Aborted' represents 'All partial updates undone via log after entering Failed' (Terminated (via Kill) OR Active (via Restart)).

[HI] 'Aborted' का अर्थ/मान 'All partial updates undone via log after entering Failed' है (Terminated (via Kill) OR Active (via Restart))।

Database Transactions: Definition, Properties and Transaction States — Exam FAQs

Q1: Why do we need a 'Partially Committed' state instead of going straight from 'Active' to 'Committed'?

'Active' से सीधे 'Committed' जाने के बजाय बीच में 'Partially Committed' अवस्था क्यों रखी जाती है?

[EN] Even after the last SQL line executes in memory, log records and commit checks have not yet been flushed safely to non-volatile disk. Partially Committed captures that vulnerable window before durability is guaranteed.

[HI] अंतिम लाइन चलने के बाद भी बदलाव अभी RAM बफर में रहते हैं और डिस्क लॉग पर पक्के होने बाकी होते हैं। इस नाज़ुक अंतराल को दर्शाने के लिए Partially Committed अवस्था होती है।

Q2: What happens to a transaction if the user closes the client connection before typing COMMIT?

यदि यूज़र COMMIT टाइप किए बिना ही डेटाबेस कनेक्शन बंद कर दे, तो खुले ट्रांजैक्शन का क्या होता है?

[EN] If AUTOCOMMIT was off and the transaction remained uncommitted (Active), the DBMS detects connection drop, marks it Failed, and automatically performs a ROLLBACK to Aborted.

[HI] AUTOCOMMIT ऑफ होने की स्थिति में अनकमिटेड ट्रांजैक्शन को DBMS अपने आप Failed मानकर पूरा ROLLBACK (Undo) कर देता है।

Q3: Does SAVEPOINT create a nested independent transaction?

क्या SAVEPOINT एक नया स्वतंत्र नेस्टेड ट्रांजैक्शन बना देता है?

[EN] No. SAVEPOINT only places a rollback bookmark inside the same active transaction; issuing COMMIT commits everything, and issuing plain ROLLBACK undoes everything including savepoints.

[HI] नहीं। SAVEPOINT एक ही ट्रांजैक्शन के अंदर केवल एक बुकमार्क (लौटने का बिंदु) बनाता है; पूरा ROLLBACK करने पर सब कुछ रद्द हो जाता है।

Related Posts

  • Loading related posts...

Post a Comment

Search Topic Notes & 20 MCQs (Hindi / English)