索引时升序还是降序?

索引时升序还是降序?显示全部

索引时升序还是降序?

收起
参与10

查看其它 2 个回答CBH的回答

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 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
浏览1518

回答者

CBH
数据库管理员UMC

CBH 最近回答过的问题

回答状态

  • 发布时间:2016-02-15
  • 关注会员:4 人
  • 回答浏览:1518
  • X社区推广