SELECT student_id FROM tuition where student_id in ( SELECT
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/04 18:06:07
SELECT student_id FROM tuition where student_id in ( SELECT student_id FROM student_temp )
上面的这个SQL语句是要选择student-id在student_temp 中的,而不是 tuition的,这样写有没有问题的?是我要得到的数据结果吗?运行后发现student_id 比student_temp 中的id还要多吖?有点疑问?
上面的这个SQL语句是要选择student-id在student_temp 中的,而不是 tuition的,这样写有没有问题的?是我要得到的数据结果吗?运行后发现student_id 比student_temp 中的id还要多吖?有点疑问?
select student_id from student_temp
出来的结果是student_temp表下面所有的student_id
然后再select student_id from tultion where student_id in -
在tuition表中输出匹配到temp表中studnet_id相同值的student_id
或者说 你若temp表student_id为1的只有一个 但是tultion表中student_id为1的有N个
那么就会输出N次的student_id内容为1
出来的结果是student_temp表下面所有的student_id
然后再select student_id from tultion where student_id in -
在tuition表中输出匹配到temp表中studnet_id相同值的student_id
或者说 你若temp表student_id为1的只有一个 但是tultion表中student_id为1的有N个
那么就会输出N次的student_id内容为1
SELECT student_id FROM tuition where student_id in ( SELECT
select.where student_id>3 GROUP BY math_mark having AVG(math
select * from teacher where s_id in(select s_id from student
select * from order where clientNo in (select distinct(clien
select * from user_info where user_name in (select user_name
select ** from A where A.id in (select id from B where ****)
select id,name from student where id in ( select id from sco
英语翻译select top 4 * from shop_books where anclassid = (select
oracle 子查询:select *,(select account from t_ps_member m where
ms sql :select * from (select *from b) as xxx where 和 select
delete from A where a_id in (select id from B where b_id in
select * into b from a where 11