Summary
Keywords
Full Transcript
DELETE vs DROP vs TRUNCATE in SQL: What's the Difference? In this video, understand the key differences between DELETE, DROP, and TRUNCATE commands in SQL! 🗑️⚠️ ✅ DELETE: Removes specific rows from a table based on conditions. You can control what to delete using the WHERE clause. ✅ DROP: Removes the entire table or database, including all its data and structure. ✅ TRUNCATE: Quickly removes all rows from a table but keeps the structure intact for future use. Want more similar videos- hit like, comment, share and subscribe ❤️Do Like, Share and Comment ❤️ ❤️ Like Aim 5000 likes! ❤️ ➖➖➖➖➖➖➖➖➖➖➖➖➖ Please like & share the video. script CREATE TABLE EMPL ( ID INT, NAME VARCHAR (17), SALARY INT, LOCATION VARCHAR(17), DEPT VARCHAR(17) ) INSERT INTO EMPL VALUES (1,'MANISH', 900000,'INDIA','SDE') INSERT INTO EMPL VALUES (2,'RANI', 1000000,'INDIA','SDE2') INSERT INTO EMPL (ID ,NAME,SALARY,DEPT) VALUES (3,'RAJ', 700000,'SALES') INSERT INTO EMPL(ID ,NAME,SALARY,DEPT) VALUES (4,'RAHUL', 600000,'HR') ➖➖➖➖➖➖➖➖➖➖➖➖➖ AWS DATA ENGINEER : https://www.youtube.com/playlist?list=PLOlK8ytA0MghpdMjb0m9zu1v9s_qbRP0q Azure data factory : https://youtube.com/playlist?list=PLOlK8ytA0MgguN5XidtQXbILxwCdJCUJE&si=iEICXHP80zGchUYh Azure data engineer playlist : https://youtube.com/playlist?list=PLOlK8ytA0MghBrzu0i6WlTBdoO1WdwV_e SQL PLAYLIST : https://www.youtube.com/playlist?list=PLOlK8ytA0MggGXIKmbfZ-_Xqcos3JKdV- PYSPARK PLAYLIST - https://www.youtube.com/playlist?list=PLOlK8ytA0MgjvOpd-088NRU_vTYw_aryH ➖➖➖➖➖➖➖➖➖➖➖➖➖ 📣Want to connect with me? Check out these links:📣 Join telegram to discuss https://t.me/+Cb98j1_fnZs3OTA1 ➖➖➖➖➖➖➖➖➖➖➖➖➖ what we have covered in this video: ➖➖➖➖➖➖➖➖➖➖➖➖➖ Hope you liked this video and learned something new :) See you in next video, until then Bye-Bye! ➖➖➖➖➖➖➖➖➖➖➖➖➖
