Photo by Rubaitul Azad on Unsplash

Member-only story

Delete, Truncate, Drop

In terms of execution speed: DROP > TRUNCATE > DELETE

JIN
6 min readApr 7, 2023

--

Thank you for being a part of this journey with me, and I hope to continue providing value to you for years to come! Giving tips by supporting me.

Hello friend, I hope you’re doing well! I’m writing to you today because I am truly passionate about sharing my knowledge and helping others learn. If you’ve found my articles to be valuable and they’ve made a positive impact on your life, I would be overjoyed if you could support me as a referred member. Your support not only helps me financially but also motivates me to continue creating content that makes a difference in people’s lives. Thank you from the bottom of my heart for considering supporting me. It means the world to me to have your support on this journey.

There are several ways to delete MySQL data, including using DELETE, TRUNCATE, and DROP keywords. These 3 methods can be used to delete data, but they are suited to different scenarios. In some scenarios, using Delete may not be the best option. The other 2 methods, TRUNCATE, and DROp are more efficient than DELETE when deleting large amounts of data or entire tables respectively. It is important to use the appropriate method for the specific scenario to ensure…

--

--

No responses yet