您好,欢迎来到保捱科技网。
搜索
您的当前位置:首页Index和Index Hint的区别

Index和Index Hint的区别

来源:保捱科技网

Conclusion:

Adding the "index" statement to an Axapta select, it does NOT mean that this index will be used by the database. What it DOES mean is that Axapta will send an "order by" to the database.

Adding the "index hint" statement to an Axapta select, it DOES mean that this index will be used by the database (and no other one).

1. select文里加入了index, 并不表示执行的时候会选择你指定的index来查找数据。但是可定会按你指定的Index里面的字段来排序。

2.select文里加入了index hint, 表示执行的时候肯定会选择你指定的index来查找数据。

这下终于明白了为什么经常看到sql文里有index hint而没有index, 它很鸡肋,order by也可以实现它的功能。 


文章来源

http://dynamicsuser.net/forums/t/37123.aspx

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- baoaiwan.cn 版权所有 赣ICP备2024042794号-3

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务