找回密码
 注册
查看: 501|回复: 1

mysql中有没有exists()函数?

[复制链接]
发表于 2004-4-26 21:49:15 | 显示全部楼层 |阅读模式
错误如下:

select sname from student where not exists(select * from SC
    -> where SC.sno=student.sno and cno='1');
ERROR 1064: You have an error in your SQL syntax near 'exists(select * from SC
where SC.sno=student.sno and cno='1')' at line 1
发表于 2004-4-28 16:03:40 | 显示全部楼层
mysql 不支持子查询的吧!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-27 09:07 , Processed in 0.045042 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表