SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: PHP Thread

  1. #1
    SitePoint Member
    Join Date
    Mar 2013
    Location
    Chennai, India
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Thread

    What are the differences between DROP a table and TRUNCATE a table?

  2. #2
    Community Advisor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,404
    Mentioned
    45 Post(s)
    Tagged
    12 Thread(s)
    DROP removes a table from the database, whereas TRUNCATE just empties the table.

  3. #3
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    71 Post(s)
    Tagged
    0 Thread(s)
    Why do i get the feeling we're doing your homework for you....
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •