SQLite数据库错误“(”

时间:2017-05-04 14:05:29

标签: sql sqlite

此查询在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

有什么想法吗?

0 个答案:

没有答案