sql lite 오류 질문입니다

2022-04-16 (토) 23:36:36 1,186

select actors.name
from actors
where not exists ((select MID
                   from movies)
                  except
                  (select actor_role.AID
                   from actor_role
                   where actor_role.AID = actor.AID));

이런 쿼리를 작성하였는데  

Uncaught Error: near "(": syntax error

이런 에러가 뜹니다. 괄호 잘 했는데 왜 괄호가 오류 뜨는걸까요...

|

답변 1개

2022-04-17 (일) 01:08:19

https://sqlite.org/lang_select.html

except 다음 select 에 (괄호)가 없어야 하는 거 아닌가요?

답변을 작성하려면 로그인이 필요합니다.