This is my code:
create table socio_recomendado(
cc_soc2 number(10) not null,
cc_socio_recomendado number(10) not null,
foreign key(cc_soc2)
references socio(cc_soc),
foreign key(cc_socio_recomendado)
references socio(cc_soc),
constraint C_SOC
check(cc_socio_recomendado != cc_soc2));
alter table socio_recomendado add primary key(cc_soc2,cc_socio_recomendado);
This is the code for Insert the value, but appears an error:
insert into socio_recomendado
values(1121955490,1121555490);