开发者

Drop query in sqlite

开发者 https://www.devze.com 2023-04-05 16:36 出处:网络
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 interna

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".

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号