Possible duplicate

Hello all.

I have confusion in drop query that how actually it work in internally. I heard one of my post that someone says that when we use drop query then internally it'll be used delete query.

So my question is, Is it true that when we use the drop query then internally the delete query also use?

有帮助吗?

解决方案

Usually it's the opposite - when you do "delete all" query the database will instead "drop" the table and then recreate it because that's faster than deleting all rows.

That's called "truncate optimization".

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top