1
はここでSQLAlchemyのORMを介して、PostgreSQLのDBテーブルを更新するための私のコードです。あなたは何か考えていますか?のPython DBの更新+ posgtresql
sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "ix_carstable_CarId"
DETAIL: Key ("CarId")=(37805) already exists.
[SQL: 'UPDATE carstable SET "AuctionId"=%(AuctionId)s, "CarId"=%(CarId)s,
updated_on=%(updated_on)s'] [parameters: {'updated_on': datetime.datetime(2017, 8, 12, 3, 49, 23, 115733),
'CarId':37805、 'auctionIdに':879}]
あなたはすでに私は 'CarId' 37805.とDB内の行を持っていますそれをもっと明確にする方法がわからない。 – univerio
idをフィルタに移動したいと思うでしょう。 –