常用工具: 简繁转换 HTML/JS互转 Url编码Escape解析 Unicode编码转换 设为首页 加入收藏夹
更多内容
" id="arctext" class="center" " class="arcinfo center" " id="slistl" class="left" " id="mid_slistl_sch" class="left" " id="mid_slistl_adv" class="left" " id="mid_slistl_adv2" " src="http://www.fzs8.net/d/js/acmsd/middle2.js"
文章正文

ASP Hex 函数

来源:  网络收集  字体:[ ]
站内搜索系统
文章正文

SQL命令 Drop删除表

来源:  网络收集  2007-05-23 00:00:00 字体:[ ]

Drop Index
取消索引

You can delete an existing index in a table with the DROP INDEX statement.
你可以将现有的索引通过DROP INDEX语句进行取消操作。

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
删除一张表或是一数据库

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命令(仅仅删除表中的数据)

TRUNCATE TABLE table_name

  
上一篇:SQL Create命令建立数据库
下一篇:SQL Alter修改表命令
最新文章
推荐文章
热门文章
版权所有:IT加油站   COPYRIGHT © 2007 WWW.FZS8.NET ALL RIGHTS RESERVED.
闽ICP备08008535号