【问题标题】:How do you find table intersections in PostgREST clients?您如何在 PostgREST 客户端中找到表交集?
【发布时间】:2022-09-26 15:02:41
【问题描述】:

从菜鸟到 PostgREST 的简单问题 - 是否有相交函数用于下面的 PSQL 查询?

select a from table1 
intersect
select a from table2;

我通读了文档https://postgrest.org/en/stable/ 并没有看到任何命令。

如果相关,我现在正在将 Supbase 客户端用于 postgREST。谢谢!

    标签: postgresql supabase postgrest supabase-database


    【解决方案1】:

    您可以创建一个视图,然后通过 PostgREST 查询该视图。

    【讨论】:

      猜你喜欢
      • 2015-12-11
      • 1970-01-01
      • 2011-04-11
      • 2016-05-04
      • 1970-01-01
      • 1970-01-01
      • 2012-04-24
      相关资源
      最近更新 更多