T
T
Tim2452020-12-28 01:40:21
Python
Tim245, 2020-12-28 01:40:21

What is the error all the work has gone to pgadmin has stopped?

curr.execute(f"""INSERT INTO users_id (user_id) VALUES (?)""",
(user_id_v, ))
psycopg2.errors.SyntaxError: ERROR: syntax error (example position: ")")
LINE 1: INSERT INTO users_id (user_id) VALUES (?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2020-12-28
@Tim245

Is this psychopg?
Who told you to use question marks?
Passing parameters to SQL queries

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question