哈,问题解决了:
SELECT * FROM student where exists( select id from studentfav where fav in ('movie', 'reading'))不知道这个解决方法对不对?
SELECT * FROM student where exists( select id from studentfav where fav in ('movie', 'reading'))不知道这个解决方法对不对?
解决方案 »
- 查询问题,紧急求助,在线等待!!!
- 分组更新问题.急求解.谢谢!
- 批量插入数据的问题,请帮忙!有一个表,往这个表中连接插入n条数据,这一个是字段是IDENTITY,另外一个字段的数据与这相关,不知如何插入
- 將表導出到Excel的問題
- 100分求助
- JDBC rollback failed 的问题 -------在线等解答----急急急!!!!!!
- DBNETLIB][ConnectionOpen (Connect()).]未找到指定的SQL SERVER
- 一个小问题
- Sql server数据插入到Access中 insert into语法怎么写?
- *************************数据库备份和还原*************************
- 大力同志来看看::::::无法在视图 'SBK_VIEW' 上创建 索引,因为该视图未绑定到架构
- 求救:请教一个触发器的问题!!!(欢迎高手指点)
SELECT * FROM student where exists( select * from studentfav where fav in ('movie', 'reading'))
SELECT * FROM student where id in( select distinct id from studentfav where fav in ('movie', 'reading'))
好像不对喔
应该为select * from student where exists (select * from studentfav where student.id=id and fav in('movie', 'reading'))吧
where s1.fav='movie' and s2.fav='reading');个人意见,接受批评!偶也是刚学SQL!