简体   繁体   English

如何获取应用 azure 表存储查询的不同值?

[英]How to get distinct values applying an azure table storage query?

I want to get the "ReceiverEmail" values of a certain PartitionKey "emailAddress".我想获取某个 PartitionKey“emailAddress”的“ReceiverEmail”值。 I want to retrieve only the distinct values of the ReceiverEmail.我只想检索 ReceiverEmail 的不同值。 I am applying this python query on an azure storage table as follows:我在 azure 存储表上应用此 python 查询,如下所示:

entit = table_service.query_entities('UserRequests','PartitionKey eq \'' + emailAddress + '\'',select= 'ReceiverEmail')

Any help of how to get distinct values ?关于如何获得不同值的任何帮助?

It seems that it is impossible to directly query distinct values.似乎不可能直接查询不同的值。 This official document states the operations that are not supported:本官方文档说明了不支持的操作:

https://docs.microsoft.com/en-us/rest/api/storageservices/query-operators-supported-for-the-table-service#unsupported-query-operators https://docs.microsoft.com/en-us/rest/api/storageservices/query-operators-supported-for-the-table-service#unsupported-query-operators

在此处输入图片说明

If you want this feature, you can go to the feedback website to post your suggestions, and the Azure development team may adopt your suggestions:如果你想要这个功能,可以到feedback website发表你的建议,Azure 开发团队可能会采纳你的建议:

https://feedback.azure.com/forums/34192--general-feedback https://feedback.azure.com/forums/34192--general-feedback

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 pypyodbc 中,如何查询表的不同值、截断旧表和 append 将不同值保存到空表 - In pypyodbc, How to query a table for its distinct values, truncate old table and append the distinct values to the empty table 如何使用Rest API查询Azure表存储 - How to query Azure table storage using rest API 如何从表中获取字段列表和不同值 - How to get a list of fields and distinct values from a table Azure表存储多行查询性能 - Azure Table Storage multi row query performance 从 Azure 表存储中提取字节值 - Extracting Byte values from Azure Table Storage 如何在不使用 Django 应用 values() 方法的情况下使用 distinct() 方法? - How to use distinct() method without applying values() method using Django? 如何在SQLAlchemy中的联接表中汇总不同的值? - How to in aggregate distinct values in joined table in SQLAlchemy? 如何将记录批量发送到Azure表存储? - How to batch send records to Azure Table Storage? 在Django中,如何在单个查询中基于不同的字段值获得总行数? - In Django, how could I in a single query get total row count based on distinct field values? 如何使用 sqlAlchemy ORM 从表的许多列中获取不同的值? - How to get distinct values from many columns of table using sqlAlchemy ORM?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM