Azure移动应用程序使用Java内部查询

Azure移动应用程序使用Java内部查询

本文介绍了Azure移动应用程序使用Java内部查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对Java和Azure移动应用程序使用内部联接查询,但是看起来api不允许它在表之间执行操作.有什么办法吗?

I want to use an inner join query with Java and Azure mobile apps, but it looks like api does not let it do operations among the tables. Is there any way to do it?

List<ToDoItem> result = table.where()
                            .field("complete").eq(false)
                            .execute().get();

如您所见,所有操作都在一个表上.

As you see, all the operations are over a table.

推荐答案

@shanks,有一个类似的SO线程,该问题已得到解答,您可以参考.

@shanks, There is a similar SO thread Implementing table joins in the Mobile Apps Node.js backend using SQL which has been answered and you can refer to.

假设使用Node.js作为Azure移动应用程序的后端,请执行以下步骤:

Assumption that using Node.js as the backend of Azure Mobile App, the steps as below:

  1. 通过功能 azureMobile.data.execute 与内部联接SQL的查询或由内部联接sql创建的视图的查询.您可以参考 Custom APIs .
  2. 通过android客户端调用自定义API,请参阅 How to: Call a custom API .

这篇关于Azure移动应用程序使用Java内部查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 17:27