Answer the question
In order to leave comments, you need to log in
What is the error in the table, even there is no id which is equal to 1?
I want to create columns in the table, but it says this:
psycopg2.errors.UniqueViolation: ERROR: duplicate key value violates the "Orders_pkey" uniqueness constraint
DETAIL: Key "(id)=(1)" already exists.
curr_Devit_pm.execute(
f"""INSERT INTO {table} (id, name, user_name, shop, phone, price, bazar_tovar, oplata, clock, pay) VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)""",
(orders_count, Devet_pm[3], Devet_pm[4], Devet_pm[5], Devet_pm[6], Devet_pm[7], Devet_pm[2], Devet_pm[11], a, ass, ))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question