【问题标题】:odata : how to use tolower in startswithodata:如何在startswith中使用tolow
【发布时间】:2013-09-23 06:43:02
【问题描述】:

当我像这样使用 odata 时:$filter=startswith(tolower(firstName),tolower('A')) 它不起作用。

我想知道 tolower 或 toupper 是否可以与startswith一起使用?

【问题讨论】:

    标签: odata startswith tolower


    【解决方案1】:

    应该可以的。

    作为实时服务的示例,试试这个:

    http://services.odata.org/v3/OData/OData.svc/Products?$filter=startswith(tolower(Name),'b')
    

    在该服务中,有一个名为“面包”的产品。如果您未在 URL 中包含 tolower 调用,则不会返回此实体。如果您确实包含tolower,则会包含“面包”产品。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-19
      • 1970-01-01
      • 2019-02-19
      • 2013-07-14
      相关资源
      最近更新 更多