Results 1 to 2 of 2

Thread: Difference among delete table & prune table

  1. #1
    MorganCooper is offline Senior Member
    Join Date
    Dec 2009
    Posts
    233
    Rep Power
    3

    Default Difference among delete table & prune table

    I am learning database language. I want to know difference between delete table & truncate table? Any idea would be appreciated. Thanks in advanced.

  2. #2
    BellWard is offline Senior Member
    Join Date
    Dec 2009
    Posts
    236
    Rep Power
    3

    Default

    The Difference between TRUNCATE and DELETE commands.

    TRUNCATE

    1. Once you use TRUNCATE command then u cannot recover the data again from the table.

    2. TRUNCATE removes all the rows from the Table.

    3. You cannot use WHERE clause

    For Example:

    TRUNCATE FROM [TABLE_NAME]; removes all the rows from the Table.

    DELETE

    1. If you use DELETE Command then the data deleted can be recover when you ROLLBACK.

    2. You can delete selected number of records from table using DELETE command.

    3. You can use WHERE clause

    For Example:

    DELETE FROM [TABLE_NAME]; deletes all the records from the table.

Similar Threads

  1. Table Indexes
    By MyersGray in forum Programming
    Replies: 2
    Last Post: 02-05-2010, 06:08 PM
  2. Table in sql server
    By PetersonClark in forum Programming
    Replies: 1
    Last Post: 02-03-2010, 05:47 PM
  3. (C) + + Table Structure
    By willi in forum Programming
    Replies: 4
    Last Post: 11-16-2009, 11:57 AM
  4. Working with your table
    By rence54 in forum Technologies
    Replies: 0
    Last Post: 05-22-2008, 12:52 PM
  5. Partition Table
    By techno23 in forum Hard Disk
    Replies: 0
    Last Post: 03-21-2008, 10:15 AM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48