I am trying to format the following select statement:
cursor.execute("SELECT ST_SetSRID(ST_MakePoint({x}, {y}, {z}),4326) FROM " + config['PostgreDB']['table_name'] + ";".format(x, y, z))
when i run the code i recived the below posted error message
please let me know how to format this select statement correctly
code:
cursor.execute("SELECT ST_SetSRID(ST_MakePoint({x}, {y}, {z}),4326) FROM " + config['PostgreDB']['table_name'] + ";".format(x, y, z))
error
FEHLER: Syntaxfehler bei »{«
LINE 1: SELECT ST_SetSRID(ST_MakePoint({x}, {y}, {z}),4326) FROM slo...