sql新建表并将检索源表的结果插入。为什么执行后新表还是空白的!!help!

[复制链接]
查看11 | 回复2 | 2012-3-29 14:25:59 | 显示全部楼层 |阅读模式
可能你关联的数据有问题,你单独的执行 ,看看能不能检索出数据。你写的应该没有问题,只是检索出来的数据为空所以插入到s表的数据也为空 select distinct student.sno,sname,ssex
from student,sc
where 80<=all(select grade
from sc)
and student.sno=sc.sno...
回复

使用道具 举报

千问 | 2012-3-29 14:25:59 | 显示全部楼层
关键是要看你的表里是否有符合条件的数据:select distinct student.sno,sname,ssex
from student,sc
where 80<=all(select grade
from sc)
and student....
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行