Databases · Junior · Question 32 of 75

What happens with UPDATE users SET active = false; without a WHERE?

Explanation

The same goes for DELETE FROM users;. Run risky changes inside a transaction, check the affected row count, and only then commit.

Further reading

Problem with a question

Databases · Junior · question 32

Test yourself

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

Take this quiz