保存失败,错误信息为: org.springframework.dao.DuplicateKeyException: ### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "dw_mapping_pkey" 详细:Key (target_column_name, component_id)=(name, DWMP0000000000001025) already exists. ### The error may involve com.di.dmas.dataway.mxgraph.dao.GraphMappingMapper.insertOneMappingParam-Inline ### The error occurred while setting parameters ### SQL: insert into DW_MAPPING ( COMPONENT_ID, TEMPLATE_ID, SOURCE_COLUMN_NAME, TARGET_COLUMN_NAME, COLUMN_ORDER ) values ( ?, ?, ?, ?, ? ) ### Cause: org.postgresql.util.PSQLException: ERROR: duplicate
时间: 2024-04-20 10:24:53 浏览: 204
PHP MySQL Order By:Update:Delete.md
key value violates unique constraint "dw_mapping_pkey" 详细:Key (target_column_name, component_id)=(name, DWMP0000000000001025) already exists.
这个错误是由于在数据库中已经存在了相同的目标列名和组件ID的记录,而你尝试插入的数据与已存在的记录冲突导致的。你需要确保插入的数据在目标列名和组件ID上是唯一的,或者更新已存在的记录而不是插入新记录。
阅读全文