Home
 Articles
 Book Store
 DIT
 Login
 Register
 News
 Online Training Courses
 Programming
 Research Papers
 Software Development
 Students Notes
  Web Hosting

 
 

10000 cute sms in 33 different categories and all mobile stuff for free please support us by visiting our sponsor website replysms.com

Learning Sql from admin of this Websie

 SQL Intro  SQL Delete  SQL Union
 SQL  Tables  SQL Order By  SQL Create
 SQL Select  SQL AND & OR  SQL Drop
 SQL Where  SQL In  SQL Alter
 SQL Like  SQL Between  SQL Functions
 SQL Insert  SQL Aliases  SQL Group By
 SQL Update  SQL Join  SQL Select Into

SQL Create View


Drop Index

You can delete an existing index in a table with the DROP INDEX statement.

Syntax for Microsoft SQLJet (and Microsoft Access):

DROP INDEX index_name ON table_name

Syntax for MS SQL Server:

DROP INDEX table_name.index_name

Syntax for IBM DB2 and Oracle:

DROP INDEX index_name

Syntax for MySQL:

ALTER TABLE table_name DROP INDEX index_name

 

Delete a Table or Database

To delete a table (the table structure, attributes, and indexes will also be deleted):

DROP TABLE table_name

To delete a database:

DROP DATABASE database_name

 

Truncate a Table

What if we only want to get rid of the data inside a table, and not the table itself? Use the TRUNCATE TABLE command (deletes only the data inside the table):

TRUNCATE TABLE table_name

 


  

 

 
 

Copyright © http://www.itbaba.com. 2007 All Rights