Conditional insert #18706
Conditional insert
#18706
-
What would be the presto solution to a problem like this I have a python script that does this essentially
The idea is to insert only if there is no row that matches the same field-values or, is it possible to run only one statement to achieve the same result? |
Beta Was this translation helpful? Give feedback.
Answered by
bitsondatadev
Nov 18, 2022
Replies: 1 comment
-
Hey @well1791, looks like you're looking for a feature like |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
well1791
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @well1791, looks like you're looking for a feature like
MERGE
. This isn't supported in Presto yet, but take a look at Trino (a fork off Presto by its original creators).