Node.js · Middle · Question 48 of 75

When do you need a database transaction?

Explanation

Use the same connection for every statement in the transaction and roll back on any error.

Further reading

Problem with a question

Node.js · Middle · question 48

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz