Delete :
1) you can delete all rows from the table or
based on some condition (Where clause) rows data we can delete
2) we can roll back data if we use to delete
3) actual table will not delete from the database only we
can't delete data
Truncate :
1) you can't use where condition by using truncate
2) we can't rollback (we can't get data )
if we use truncate
3) actual table will not delete from the database only we
can't delete data
DROP :
1) you can't use where condition by using Drop
2) we can't rollback (we can't get data )
if we use DROP
3) actual table delete from the database
delete from carmaster where id =4
truncate table carmaster
drop table carmaster
Nesta página do site você pode assistir ao vídeo on-line Difference between Delete, Drop & Truncate in SQL Server duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário DotnetMaster 10 Maio 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 31 vezes e gostou 1 espectadores. Boa visualização!