Created
May 22, 2020 04:00
-
-
Save jordic/1e56456b5fc6ec4774e508824ec1b76b to your computer and use it in GitHub Desktop.
dedent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import textwrap | |
sql = textwrap.dedent(""" | |
SELECT t1.field1, | |
t2.field2, | |
t3.field3 | |
FROM table1 t1 | |
INNER JOIN table2 t2 using(id_relation) | |
WHERE t1.pk = $1 | |
""") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment