Quando crio a query... SELECT * FROM curso WHERE categoria_id IN ( SELECT id FROM categoria WHERE nome NOT LIKE ('% %') );
o programa me responde com a seguinte mensagem...
ERROR: operator does not exist: character = integer LINE 1: SELECT * FROM curso WHERE categoria_id IN ( ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. SQL state: 42883 Character: 40
fiquei travado aí.