sqlserver7中如何建索引?第一个答对的立即送30分!

jixian 2001-07-27 02:07:21
...全文
105 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
jixian 2001-07-30
  • 打赏
  • 举报
回复
wo.....cuole
Jpp 2001-07-27
  • 打赏
  • 举报
回复
jixian(极限), 你后面的问题应该另开一贴, 因为你的题目说的清楚: 如何建索引?

不要轻易地违背你的诺言!
jixian 2001-07-27
  • 打赏
  • 举报
回复
如何引用呢?
highw 2001-07-27
  • 打赏
  • 举报
回复
Description

Use the CREATE INDEX statement to create a secondary index for an existing table. Index names may not have embedded spaces. Paradox indexes may be based on multiple columns. Due to the distinctive nature of dBASE expression indexes, only single-column indexes can be created with CREATE INDEX.

Use UNIQUE to create an index that raises an error if rows with duplicate column values are inserted. By default, indexes are not unique.

Use ASC (or ASCENDING) to create an index that orders data in an ascending direction (smallest to largest). DESC (or DESCENDING) creates a descending ordering (largest to smallest). When a direction imperative is not specified, ASC is the implied default.

The following statement creates a multi-column (compound) Paradox secondary index.

CREATE INDEX CustDate ON "Orders.db" (CustNo, SaleDate)

The following statement creates a unique dBASE secondary index.

CREATE UNIQUE INDEX Namex ON "Employee.dbf" (Last_Name)

The existence of indexes may affect the updatability of queries. See the section on updatable queries for more information.
highw 2001-07-27
  • 打赏
  • 举报
回复
CREATE [UNIQUE] [ASC | DESC] INDEX index_reference ON table_reference (column_reference [,column_reference...])

hailong525 2001-07-27
  • 打赏
  • 举报
回复
create index indexName on tablename(colname)

34,590

社区成员

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

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