指定結果列的排序順序。
Example
此範例依 、 和nameaccountnumber值遞createdon增順序傳回帳戶記錄。
<fetch>
<entity name='account'>
<attribute name='name' />
<attribute name='accountnumber' />
<attribute name='createdon' />
<order attribute='createdon' />
<order attribute='name' />
<order attribute='accountnumber' />
</entity>
</fetch>
Attributes
| 名稱 | Required? | Description |
|---|---|---|
attribute |
Yes | 屬性元素的 來name排序資料。 |
alias |
否 | 屬性元素的 排序alias資料 |
descending |
否 | 是否要以遞減順序排序資料。 |
entityname |
否 | 使用此屬性來指定元素的 link-entity 排序順序,以便不會最後套用它們。 在元素內entity,order設定entityname為 alias 的link-entity值。
瞭解如何先申請 link-entity 訂單 |
父元素
| 名稱 | Description |
|---|---|
| 實體 | 指定 提取元素的子元素,即查詢的「父實體」。 只允許一個實體。 |
| 連結實體 | 聯結與 實體 或 連結實體 相關的資料表,以傳回包含結果的其他資料行。 也與 篩選 元素一起使用,以 對相關表格中的欄值套用條件。 |