Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

從資料庫刪除現有的資料表、程序或檢視,或是從資料表刪除現有的索引。

附註: Microsoft Access 資料庫引擎不支援搭配非 Microsoft Access 資料庫使用 DROP 或任何 DDL 陳述式。 請改為使用 DAO Delete 方法。

語法

DROP {TABLE table | INDEX index ON table | PROCEDURE procedure | VIEW view}

DROP 陳述式由下列各部分組成:

部分

描述

table

要刪除的資料表名稱,或是要刪除索引的資料表名稱。

procedure

要刪除的程序名稱。

view

要刪除的檢視名稱。

index

要從資料表刪除的索引名稱。


備註

您必須先關閉資料表,才能將其刪除或移除當中的索引。

您也可以使用 ALTER TABLE 從資料表刪除索引。

您可以使用 CREATE TABLE 建立資料表,並使用 CREATE INDEX 或 ALTER TABLE 建立索引。 若要修改資料表,請使用 ALTER TABLE。



Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×