0
I have a table where two specific fields together cannot have the same values.
I BELIEVE who are they:
- NUM_PERIODO_LANCAMENTO
- COD_INDICADOR
Assuming I have that data:
NUM_PERIODO_LANCAMENTO = 1 , COD_INDICADOR = 1 , COD_CR_PERIODO = 1
NUM_PERIODO_LANCAMENTO = 2 , COD_INDICADOR = 1 , COD_CR_PERIODO = 1
NUM_PERIODO_LANCAMENTO = 3 , COD_INDICADOR = 1 , COD_CR_PERIODO = 1
When I try to register this data
NUM_PERIODO_LANCAMENTO = 1 , COD_INDICADOR = 1 , COD_CR_PERIODO = 2
Constraint error is displayed.
I’d like to release this record, how to do that?
Do these columns come from a foreign key? Try to check how this Constraint is built, you may have to change it
– gmsantos