Skip to content

DELETE for more complex conditions, especially composite primary keys? #2063

Answered by fjf2002
fjf2002 asked this question in Q&A
Discussion options

You must be logged in to vote

Ah I figured out I can emulate

DELETE https://postgrest/mytable?(id,name)=not.in.((14, 'foo'), (15, 'bar'))

by using

DELETE https://postgrest/mytable?or=(id.neq.14,name.neq.foo)&or=(id.neq.15,name.neq.bar)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wolfgangwalther
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #2061 on December 02, 2021 13:20.