Dont delete truncate your tables in SQL

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Dont Delete , truncate it. If you are working in a huge table you need to be very very careful while executing any query because due to large data an

Statistics

  • Total Hits - 27347

  • Total Votes - 107 votes

  • Vote Up - 45 votes

  • Vote Down - 62 votes

  • Domain - javarevisited.blogspot.com

  • Category - Basic SQL/Advanced SQL

  • Submitted By - Javin Paul

  • Submitted on - 2011-11-02 08:20:14

Description

Dont Delete , truncate it. If you are working in a huge table you need to be very very careful while executing any query because due to large data any query can run at very long duration or return very huge results which can potentially hang or blew your database. one of common problem with beginners is that they use delete frequently to remove data from tables which is incorrect because if your table is huge than delete can run off your log segment. truncate is the best way to purge data from tables. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements