Use SQL drop to delete tables, databases, and indexes

Source: Internet
Author: User
Tags mysql index

Next let's take a look at our commonly used drop function. This is used in mysql mssql access to delete SQL drop statements, Delete tables, delete databases, and delete indexes. Let's take an example here.

Drop index Delete index

Access:Drop index index_name ON table_name

Mssql:Drop index table_name.index_name

Mysql index deletion:Alter table table_name drop index index_name

DB2/Oracle index deletion method:Drop index index_name

The index is deleted using drop. The following describes how to use drop to delete databases and data tables,

The methods for deleting tables in access/mysql/mssql/db2/oracle are the same, for example, drop table table_name.
Access/mysql/mssql/db2/oracle the methods for deleting databases are the same, for example: drop table database_name

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.