Difference between Delete, Drop & Truncate in SQL Server

Publicado el: 10 mayo 2022
en el canal de: 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


En esta página del sitio puede ver el video en línea Difference between Delete, Drop & Truncate in SQL Server de Duración hora minuto segunda en buena calidad , que subió el usuario DotnetMaster 10 mayo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 31 veces y le gustó 1 a los espectadores. Disfruta viendo!