2
I usually do it directly from the IDE (Sql Developer), but I need to run the script this time.
Assuming the existing table TB_CR_INDICADOR_PERIODO
and the column COD_CR_INDICADOR_PERIODO
as the single identification column, how could I set this Primary key?
select COD_CR_INDICADOR_PERIODO from TB_CR_INDICADOR_PERIODO group by Cod_cr_indicador_periodohaving Count(*) > 1 will show if there are any duplicates in this key.
– Motta