Dont delete truncate your tables in SQL

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Dont delete truncate your tables in SQL

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
http://javarevisited.blogspot.com/2011/10/how-to-use-truncate-and-delete-command.html
  • Total Hits: 18169

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 142 votes

  • Category: Basic SQL/Advanced SQL

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

  • Submitted By: Javin Paul

  • Set as Favorite

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.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 39.44%  56
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.56%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.27%  16
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.56%  15
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.17%  40

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements