Hello, this error
"[Error Code: 1048, SQL State: 23000] Column 'colegiado_id' cannot be null"
It 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;