【问题标题】:MS Access + Postgres Accent / Case insensitive editable filterMS Access + Postgres 口音/不区分大小写的可编辑过滤器
【发布时间】:2021-02-03 00:11:36
【问题描述】:

我想使用不区分重音和大小写的过滤器来过滤表单。

MS Access 也不支持,但 Posgres 支持。使用这些作为参考: Does PostgreSQL support "accent insensitive" collations? PostgreSQL: How to make "case-insensitive" query

我询问了如何从访问权限中发送 Postgres 特定的 SQL,解决方案是使用直通查询 Postgresql syntax in ms access

无论口音或大小写如何,我都会得到我想要的结果。但是,表单的记录集不再可编辑。根据我的研究(例如:How to make a passthrough / passthru query editable?)传递查询不可编辑/可更新

有没有办法用不区分重音/大小写的过滤器过滤表单并让生成的记录集可更新?

【问题讨论】:

    标签: postgresql ms-access filter case-insensitive accent-insensitive


    【解决方案1】:

    您可以使用 Access 查询(不是 Pass-Through),使用 StrComp FunctionvbBinaryCompare = 0。

    SELECT foo
    FROM bar
    WHERE StrComp(foo, "Aáà", 0) = 0
    

    结果 0 = 完全匹配。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-10
      • 2013-06-15
      • 2013-10-24
      • 2016-03-15
      相关资源
      最近更新 更多