Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (中文) » UltraLite - 数据库管理和参考 » 使用 UltraLite 数据库 » UltraLite 性能与优化 » 管理临时表

 

恢复主键索引顺序

在 UltraLite 10.0.0 及之前的版本中,如果 UltraLite 优化程序未使用其它索引,则 使用主键返回结果。因此,行根据主键索引的顺序进行排序。

如果结果必须按主键排序,应重新编写查询以包含 ORDER BY 子句。

提示

建议使用 ORDER BY 子句(只要有可能)。

 另请参见