Cole Twitchell
Cole Twitchell

Reputation: 145

When a SQL DELETE query times out, what happens with the data?

If I were to run a DELETE FROM some_table, and that were to timeout, what happens to the data?

The way I see it, one of two things might happen:

Both seem logical. Would one happen 100% of the time? Or is this dependent on some settings I'm unaware of? Note that I'm not asking about the viability of the DELETE, I realize that TRUNCATE would likely be opportune. This is purely out of curiosity of how timeout functions with DELETE.

Upvotes: 4

Views: 844

Answers (1)

Mr. K
Mr. K

Reputation: 389

The Oracle, SQL Server,MySQL, PostgreSQL databases follows ACID properties. Hence whenever delete statement shows timed-out it must get rolled back. You can get overview of ACID from the this Link.

Upvotes: 1

Related Questions