使用not exists时报错ORA-00920:无效的关系运算符

2025-05-15 07:12:25
推荐回答(1个)
回答1:

select s_no,s_name,s_sex,s_age,s_dept from student 
where  not exists (select 1 from (select s_name from student group by s_name having count(s_name)>1) a
where a.s_name=student.s_name)

语法有误,这样试试