Navigation

    MemFireDB论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    如何实现通过API进行多表查询?

    MemFireDB新手区
    1
    1
    27
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MemFireDB Robot last edited by

      如何通过bash从多个表中查询数据~

      3d81b512-9c29-4e26-998a-666aa232a3bf-e2f276b187d4ed5f1b125b43b8c5eea.png

      这需要通过外键进行关联,可以参考: https://postgrest.org/en/stable/api.html#resource-embedding

      4a44f879-8052-4c89-bba3-5d79b4a4e8f9-62d9acc6673eb885417f269ed7c69b2.png

      curl "http://localhost:3000/films?select=title,directors(id,last_name)"
      
      1 Reply Last reply Reply Quote 3
      • First post
        Last post