def cast_for_in_statement(iterable):
iterable = ["'{}'".format(n) for n in iterable]
return "({})".format(", ".join(iterable))
Created
February 11, 2016 15:28
-
-
Save danishabdullah/a4a71d5f46094b7570d4 to your computer and use it in GitHub Desktop.
Cast for postgres IN statement
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment