Difference between Delete, Drop & Truncate in SQL Server

Pubblicato il: 10 maggio 2022
sul canale di: DotnetMaster
31
1

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


In questa pagina del sito puoi guardare il video online Difference between Delete, Drop & Truncate in SQL Server della durata di ore minuti seconda in buona qualità , che l'utente ha caricato DotnetMaster 10 maggio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 31 volte e gli è piaciuto 1 spettatori. Buona visione!