此查询在SQLite数据库中提供以下错误
(select course_id
from section
where semester = 'Spring' and year = 2010)
intersect
(select course_id
from section
where semester = 'Fall' and year = 2009)
错误:接近“(”:语法错误:
但是,当我删除括号时,它可以正常工作。
select course_id
from section
where semester = 'Spring' and year = 2010
intersect
select course_id
from section
where semester = 'Fall' and year = 2009
有什么想法吗?