Domanda di colloquio di Zycus

SQL difference between truncate, drop and delete commands

Risposta di colloquio

Anonimo

27 ago 2020

truncate deletes all data for good. it also reduces the size of the file holding the data on disk. delete marks the data as deleted . you can undo the command if used in a sql procedure drop deletes the data + the structure of the table.