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 the difference between delete and truncate?

Answer Posted / venkatesh kumar.s

Truncate:The truncate command deletes the rows in the
table,but not the structure of the table.
Cmd-truncate table tablename;
Drop:The drop command will drop the table from the databases.
Cmd-drop table tablename;
Delete:The delete cmd removes tuples from a relation.It
includes where clause to select the tuples to be deleted.
Cmd-delete from tablenmae where attribute-name="value" or value;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is building blocks of client/server?

1109


Should database table names be capitalized?

983


What are the different types of languages that are available in the dbms?

1029


What is dba in dbms?

1066


What do you understand by correlated subqueries in dbms?

960


What are the advantages of dbms?

944


What is dbms and its advantages?

981


What is dbms with example?

1035


How many rows can a database hold?

1041


What is alternate key?

925


What are records and fields in a database?

1081


Mention some advantages of using dbms.

937


What is information schema in database?

965


What are the disadvantages of a query?

1021


What are foreign keys in database?

966