Answer the question
In order to leave comments, you need to log in
Why does it give me no such column, although it exists?
I want to display a product where there is a user id next to it, here is the code, but I get an error: there is no such column
back_result = cur.execute(f"""SELECT * FROM {order} WHERE user_id = {user_id_q_bay}""").fetchall()
Answer the question
In order to leave comments, you need to log in
Because using string interpolation to form a query is a very bad practice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question