删除索引
来源:互联网 发布:摄乎大国之间的摄 编辑:程序博客网 时间:2024/05/16 07:22
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
在Enterprise Manager 中可以从如图8-9 所示的索引管理对话框或如图8-14 所示的表的属性对话框中选择要删除的索引,再选“Delete” 按钮来删除索引。
8.4.2 用DROP INDEX 命令删除索引
DROP INDEX 命令可以删除一个或多个当前数据库中的索引。其语法如下:
DROP INDEX 'tablename.indexname' [,...n]
DROP INDEX 命令不能删除由CREATE TABLE 或ALTER TABLE 命令创建的PRIMARY KEY 或UNIQUE 约束索引。也不能删除系统表中的索引。
例8-6: 删除表products 中的索引p_quantity。
drop index products1.p_quantity
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
8.4.1 用Enterprise Manager 删除索引在Enterprise Manager 中可以从如图8-9 所示的索引管理对话框或如图8-14 所示的表的属性对话框中选择要删除的索引,再选“Delete” 按钮来删除索引。
8.4.2 用DROP INDEX 命令删除索引
DROP INDEX 命令可以删除一个或多个当前数据库中的索引。其语法如下:
DROP INDEX 'tablename.indexname' [,...n]
DROP INDEX 命令不能删除由CREATE TABLE 或ALTER TABLE 命令创建的PRIMARY KEY 或UNIQUE 约束索引。也不能删除系统表中的索引。
例8-6: 删除表products 中的索引p_quantity。
drop index products1.p_quantity
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 删除索引
- 删除索引
- 删除索引
- Lucene创建索引,删除索引
- 删除索引、索引库、数据项
- mysql 创建索引,删除索引,查看索引
- lucene中的删除索引
- 全文索引的删除
- 删除全文索引
- 删除索引失败
- 创建与删除索引
- lucene 删除索引
- 创建与删除索引
- Lucene在删除索引
- Solr更新、删除索引
- 删除表 索引
- mysql删除索引
- Lucene之删除索引
- 数据库 缺省值
- 数据库 规则
- 数据完整性概述
- 创建和使用图表
- 索引调整向导
- 删除索引
- 查看与修改索引
- 创建索引
- 数据库索引
- SQL表的删除
- 查看表
- 两种方法安装SQL Server 2005中的 AdventureWorks 数据库
- Sql Server在安装时提示挂起的解决方法
- 解析SQL Server 2008中的新语句:MERGE