索引时升序还是降序?

索引时升序还是降序?

参与10

3同行回答

CBHCBH数据库管理员UMC
你應該是指在 Create index 時候沒有指定欄位排序是使用 ASC/DESC 情況下,預設值是什麼吧 !?  IBM 網址給的答案是 ASC。ASC : Specifies that index entries are to be kept in ascending order of the column values; this is the default setting. ASC canno...显示全部

你應該是指在 Create index 時候沒有指定欄位排序是使用 ASC/DESC 情況下,預設值是什麼吧 !?  IBM 網址給的答案是 ASC。


ASC :

Specifies that index entries are to be kept in ascending order of the column values; this is the default setting. ASC cannot be specified for indexes that are defined with EXTEND USING (SQLSTATE 42601).


以下為參考網址:

https://www-01.ibm.com/support/knowledgecenter/SSEPGG_9.7.0/com.ibm.db2.luw.sql.ref.doc/doc/r0000919.html

備註:DB2 版本 9.7.0 / 9.8.0 / 10.1.0 / 10.5.0 預設值皆為 ASC。

收起
硬件生产 · 2016-02-15
浏览1515
drdb2drdb2系统工程师se
By default, 大家(Oracle, DB2 MS SQL Server)都是一样的显示全部

By default, 大家(Oracle, DB2 MS SQL Server)都是一样的

收起
互联网服务 · 2016-02-18
浏览1418
wangzk0206wangzk0206数据库管理员scrcu
这个要看你大部分sql怎么写!显示全部

这个要看你大部分sql怎么写!

收起
银行 · 2016-01-21
浏览1466
  • 就是普通的默认索引,是降序还是升序? 我记得ORACLE是升序
    2016-01-24

提问者

ABAP4
网站架构师BBCD

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2016-01-19
  • 关注会员:4 人
  • 问题浏览:3873
  • 最近回答:2016-02-18
  • X社区推广