Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is difference between TRUNCATE and DELETE statement

Answer Posted / xyz

truncate basically clears the data from the rows of a
specified colomn.
e.g. truncate colomn_name from table_name
then this will only empty the colomn

delete is used to simpy delete anything from the table.
e.g. delete table_name
this will remove the whole table from the database.

Is This Answer Correct ?    9 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we use ConnectorJ JDBC Driver with MS SQL?

995


How do I start sql server 2017?

933


what is raid? : Sql server database administration

1035


role of sql sever 2005 in database rather than any other database

1931


What are the different types of lock modes in sql server 2000?

936


What is use of attribute hierarchy ordered ? : sql server analysis services, ssas

1009


how can you attach more than 20 ldf files in sql server

1992


What are the difference between primary keys and foreign keys?

962


What do you mean by an execution plan?

1110


How to create database with physical files specified in ms sql server?

991


How to delete existing rows in a table?

1152


Explain steps of normalization?

992


What is key set driven?

949


How to get a list of all tables with "sys.tables" view in ms sql server?

1030


What is co-related sub query?

1018