【发布时间】:2021-02-11 16:35:10
【问题描述】:
“从表中选择字段”的字段值将按什么顺序显示。 表是聚集索引 有什么或在表中? 它看起来像在表中。但我想确定 在这种情况下,表是否是聚集索引是否重要?
【问题讨论】:
-
Fields 暗示列,但根据您的问题,我假设您对行顺序感兴趣。如果您想要列的特定顺序,请确保在 select 语句中指定列的顺序
select firstcol, secondcol, thirdcol from t;如果您想要特定的行顺序,最好指定顺序,例如:select firstcol, secondcol, thirdcol from t order by firstcol desc
标签: select field clustered-index