Java中,算上Azure数据库表中的行 [英] Java, count rows in azure database table
问题描述
我试图计算行的在Azure数据库表中的号码,并显示在我的Android应用程序,这个数字。我读过的Azure的文档从表中检索数据的位置:
I am trying to count the number of rows in an Azure database table and display that number on my android app. I have read Azure's documentation on retrieving data from tables here:
<一个href=\"https://azure.microsoft.com/en-us/documentation/articles/mobile-services-android-how-to-use-client-library/#querying\" rel=\"nofollow\">https://azure.microsoft.com/en-us/documentation/articles/mobile-services-android-how-to-use-client-library/#querying
但它没有提到内置COUNT函数。请问Azure的图书馆有COUNT函数?
But it doesn't mention a built-in COUNT function. Does the Azure library have a COUNT function?
推荐答案
作为@ AlexChen-WX说,你可以使用的方法的 includeTotalCount
对象的 MobileServiceTable
在Azure移动服务的JavaScript的后端数的记录数。
As @AlexChen-Wx said, you can use the method includeTotalCount
of Object MobileServiceTable
on the JavaScript backend of Azure Mobile Service to count the number of records.
如果你想直接依靠Android应用程序,你可以尝试使用方法 includeInlineCount
类 MobileServiceTable
在Java中,请在源$ C $ C <一个href=\"https://github.com/Azure/azure-mobile-services/blob/master/sdk/android/src/sdk/src/main/java/com/microsoft/windowsazure/mobileservices/table/MobileServiceTable.java#L349\" rel=\"nofollow\">https://github.com/Azure/azure-mobile-services/blob/master/sdk/android/src/sdk/src/main/java/com/microsoft/windowsazure/mobileservices/table/MobileServiceTable.java#L349.
If you want to directly count on the Android App, you can try to use the method includeInlineCount
of Class MobileServiceTable
in Java, please see the source code at https://github.com/Azure/azure-mobile-services/blob/master/sdk/android/src/sdk/src/main/java/com/microsoft/windowsazure/mobileservices/table/MobileServiceTable.java#L349.
这篇关于Java中,算上Azure数据库表中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!