create unique index RMBFX_RATESOURCE_IDX on RMBFX_RATESOURCE (SERIALNO, CYCODE);
为什么我插入的SERIALNO, CYCODE两字段是不重复,我是先去表里查询。我的方法是 用新增的这两个字段去数据表查询,如果有则不新增,反之则新增,判断我都写好的,为何还是报
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in com/erayt/easipay/initsys/dao/oracle/SpotRate.xml.  
--- The error occurred while applying a parameter map.  
--- Check the SpotRateDao.insertSpotRate-InlineParameterMap.  
--- Check the statement (update failed).  
--- Cause: java.sql.SQLException: ORA-00001: 违反唯一约束条件 (EASIPAY.RMBFX_RATESOURCE_IDX)求各位大神 帮帮数据oracle唯一