0
Hello, this mistake
"[Error Code: 1048, SQL State: 23000] Column 'colegiado_id' cannot be null"
happens when I try to run the SQL command below directly in Mysql:
start transaction;
INSERT INTO EspecialistasColegiados (colegiado_id, especialista_id) (
select
col.id as colegiado_id,
esp.id as especialista_id
from Especialista esp
inner join importacao imp ON imp.idimportacao = esp.id
left join Colegiado col ON col.nome like concat('%',imp.CURSOS,'%')
);
rollback;
Only one observation, if you change to not accept (as selected above) NULL the data will not be inserted.
– Giovani