Created
December 30, 2016 14:00
-
-
Save jasonrahm/bb51241fcbef0c3d319648e933874f46 to your computer and use it in GitHub Desktop.
working sql query, how to make this with sqlalchemy?
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
sql_text = '''SELECT * | |
FROM | |
CompetitionTeams ct | |
INNER JOIN | |
Teams t ON ct.teams = t.id | |
WHERE | |
ct.competitions = {}'''.format(comp) | |
result = db.engine.execute(sql_text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment