Challenge: Simulate a Transaction Rollback
Aufgabe
Swipe to start coding
In this task, you will simulate a failed transaction in SQL and ensure that no changes are saved to the database. This exercise builds on your understanding of transaction logic and data integrity.
- Begin a transaction.
- Update the
balanceforaccount_id = 1001by subtracting 100.00. - Simulate an error that would cause the transaction to fail.
- Roll back the transaction so that the balance remains unchanged.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 6
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 4.55
Challenge: Simulate a Transaction Rollback
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
In this task, you will simulate a failed transaction in SQL and ensure that no changes are saved to the database. This exercise builds on your understanding of transaction logic and data integrity.
- Begin a transaction.
- Update the
balanceforaccount_id = 1001by subtracting 100.00. - Simulate an error that would cause the transaction to fail.
- Roll back the transaction so that the balance remains unchanged.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 6
single