Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•••
Malware / Trojaner / VirenMalware trends in first half of 2026(25.09.2026 um 13:08 Uhr)
•••
Linux Tipps & HardeningWelcome Tamás Zolnai, new LibreOffice Online developer(26.09.2026 um 15:49 Uhr)
•
Linux Tipps & HardeningHappy 43rd birthday GNU!(27.09.2026 um 01:11 Uhr)
••
Sichere ProgrammierungNative Document Export (anyconvert)(27.09.2026 um 12:44 Uhr)
••••
Malware / Trojaner / VirenMalware trends in first half of 2026(25.09.2026 um 13:08 Uhr)
•••
Linux Tipps & HardeningWelcome Tamás Zolnai, new LibreOffice Online developer(26.09.2026 um 15:49 Uhr)
•
Linux Tipps & HardeningHappy 43rd birthday GNU!(27.09.2026 um 01:11 Uhr)
••
Sichere ProgrammierungNative Document Export (anyconvert)(27.09.2026 um 12:44 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

Explaining DELETE vs DROP vs TRUNCATE in SQL

The aim of this page📝 is to explain a difference between three similar clauses in SQL: DELETE FROM vs TRUNCATE TABLE vs DROP TABLE. A simple one, but essential. DELETE FROM You should be able to undo this Deletes one row at a t…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

The aim of this page📝 is to explain a difference between three similar clauses in SQL: DELETE FROM vs TRUNCATE TABLE vs DROP TABLE. A simple one, but essential.






DELETE FROM




  • You should be able to undo this

  • Deletes one row at a time

  • Logs each row in the transaction log


  • LSN (log sequence number) is kept, too

  • Supports WHERE clause for selective row deletion




DELETE FROM <table>
DELETE FROM books -- all has been dropped
DELETE FROM books WHERE author = 'Smith' -- only Smith's books deleted









TRUNCATE TABLE






TRUNCATE TABLE 'foo.bar'









DROP TABLE




  • Removes the entire table structure and all data

  • Cannot be rolled back (most DBMS)

  • Removes table definition from database schema

  • Frees all space associated with the table




DROP TABLE tablename;
DROP TABLE IF EXISTS tablename;








https://www.mssqltips.com/sqlservertip/1080/deleting-data-in-sql-server-with-truncate-vs-delete-commands/

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Explaining DELETE vs DROP vs TRUNCATE in SQL

Thematisch verwandte Begriffe: Explaining, DELETE, DROP, TRUNCATE · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-102265 | PyJWT is a Python implementation of JSON Web Token standards. From 2.13…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag