我想把我的索引设置为不可用,该怎么做?

szsusuia 2001-10-23 10:09:45
我想把我的索引设置为不可用,用disable选项为什么不可以?

用ALTER INDEX test_index UNUSABLE;这句的意义是什么?我看使用后该索引的状态还是
valid.

我怎样才能使它INVALID呢?
...全文
120 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
KingSunSha 2001-10-24
  • 打赏
  • 举报
回复
又是8i的东西, 我发现自己真无知.
语法: alter index myindex unusable;

UNUSABLE Clause
Specify UNUSABLE to mark the index or index partition(s) or index subpartition(s) UNUSABLE. An unusable index must be rebuilt, or dropped and re-created, before it can be used. While one partition is marked UNUSABLE, the other partitions of the index are still valid. You can execute statements that require the index if the statements do not access the unusable partition. You can also split or rename the unusable partition before rebuilding it.

Restriction: You cannot specify this clause for an index on a temporary table.

即使你指定INDEX为UNUSABLE, 这个INDEX还是VALID的, INVALID是指INDEX不合法.
数划云1 2001-10-24
  • 打赏
  • 举报
回复
没有。
szsusuia 2001-10-24
  • 打赏
  • 举报
回复
不知大家在ORACLE中有没有试过这个问题呢?
szsusuia 2001-10-23
  • 打赏
  • 举报
回复
不好意思,是ORACLE
LiaoCheng 2001-10-23
  • 打赏
  • 举报
回复
是SQL SERVER吧
在表的设计视图中选择属性->索引/键 中选择你要使用的索引,不用的就不选择

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧