有没有办法按特定顺序检索 %Library.RelationshipObject 的对象
Is there a way to retrieve objects of a %Library.RelationshipObject by a certain order
This documentation没有提到对元素进行排序
作为示例,我将在 SAMPLES 命名空间中通过 class Sample.Employee 显示 sql 查询,其中属性 Spouse 和 Company 是关系。您可以通过 ->
访问相关对象,您可以通过别名订购。
SELECT
title,
Spouse->Name,
Company->Name as CompanyName
FROM
sample.employee
ORDER BY
CompanyName
This documentation没有提到对元素进行排序
作为示例,我将在 SAMPLES 命名空间中通过 class Sample.Employee 显示 sql 查询,其中属性 Spouse 和 Company 是关系。您可以通过 ->
访问相关对象,您可以通过别名订购。
SELECT
title,
Spouse->Name,
Company->Name as CompanyName
FROM
sample.employee
ORDER BY
CompanyName