SQL drop usage Deletes a table, deletes a database, deletes an index

Source: Internet
Author: User
Tags db2 mssql mysql delete

Let's take a look at our commonly used drop functions, which are used to delete the SQL drop usage in MySQL access to delete the table, delete the database, delete the index Oh, let's step through the example.

Drop INDEX Delete Indexes

Access Deletes the index: DROP INDEX index_name on table_name

MSSQL Delete index: DROP INDEX Table_name.index_name

MySQL Delete index: ALTER TABLE table_name DROP INDEX index_name

db2/oracle Delete Index method: DROP INDEX index_name

The above is using drop to delete the index, the next we want to see how to use drop to delete the database and datasheet,

Access/mysql/mssql/db2/oracle Deletes a table in the same way as: DROP TABLE table_name
Access/mysql/mssql/db2/oracle Delete a database in the same way as: Drop TABLE database_name

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.