日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
SQL中Drop刪除表命令解析

如果您才接觸SQL不久,SQL的各種命令是一定需要掌握的,下面為您介紹SQL命令中的Drop刪除表,供您參考,希望對(duì)您有所幫助。

Drop Index
取消索引
You can delete an existing index in a table with the DROP INDEX statement.
你可以將現(xiàn)有的索引通過DROP INDEX語句進(jìn)行取消操作。

Syntax for Microsoft SQLJet (and Microsoft Access):
在Microsoft SQLJet (和 Microsoft Access)中的語法是這樣的:

DROP INDEX index_name ON table_name

Syntax for MS SQL Server:
MS SQL Server的語法是這樣:

DROP INDEX table_name.index_name

Syntax for IBM DB2 and Oracle:
IBM DB2和Oracle的語法為:

DROP INDEX index_name

Syntax for MySQL:
MySql則是這樣:

ALTER TABLE table_name DROP INDEX index_name

--------------------------------------------------------------------------------

Delete a Table or Database
刪除一張表或是一數(shù)據(jù)庫
To delete a table (the table structure, attributes, and indexes will also be deleted):
刪除一張表(表中的數(shù)據(jù)結(jié)構(gòu),屬性以及索引也會(huì)被刪除):

DROP TABLE table_name

To delete a database:
要?jiǎng)h除一個(gè)數(shù)據(jù)庫的話可以這樣寫:

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):
當(dāng)我們只想將表內(nèi)的數(shù)據(jù)做完成清楚而保留其內(nèi)部結(jié)構(gòu)的話,可以使用TRUNCATE TABLE命令(僅僅刪除表中的數(shù)據(jù))

TRUNCATE TABLE table_name


當(dāng)前文章:SQL中Drop刪除表命令解析
網(wǎng)站URL:http://www.5511xx.com/article/dhjghpj.html