i have a small problem with formatting in Python. My code is:
sql_statement="""
INSERT INTO {target}.{table}
SELECT COL1,COL2
FROM {src}.{table}
WHERE Id = 999 """.format(table=table,src=src,target=target)
cur.execute(sql_statement)
Every time when i print this sql_statement INSERT,SELECT,FROM and WHERE are shifted by one tab right in the terminal. How can i format this correct? Also if i put INSERT into a first like where sql_statement is INSERT is printed ok.
sql_statement="""INSERT INTO {target}.{table}
SELECT COL1,COL2
...