查询! insert into A select ID=1,name,成绩=0 where not exist(A.科目=B.name) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Select b.ID,b.科目,IsNULL(a.成绩,0) as 成绩from 表A as a right Join 表B as b on a.id=b.id to WangZWang(阿来) ( ) :不是通过ID来关连的!其实就是这个意思:通过科目名来关连的! Select b.ID,b.科目,IsNULL(a.成绩,0) as 成绩from 表A as a right Join 表B as b on a.科目=b.Name select c.ID,d.[科目],isnull(d.[成绩],0) as [成绩] from (select a.Id, b.name from table a ,table b ) c left join tablea d on c.id =d.id and c.name=d.name mssql2005 数据库分区表异常,请大家一起解决。 字符串比较问题 如何让SQL服务器仅能让本机连接? 关于"未能创建OLE DB提供程序MSDASC的实例"的错误如何解决 关于SQL2000的时间查询问题 "SQL Server 2008 Reporting Services" 这本书有人在看吗? 数据适配器的使用问题 根据值来取字段名 有关VFP的打印问题: 请问搞VFP的薪水有多少,DELPHI与VFP有什么区别?谢谢! 关于分组生成流水码的语句请教 一个组合查询的问题!麻烦大家帮我解答一下
from 表A as a right Join 表B as b
on a.id=b.id
from 表A as a right Join 表B as b
on a.科目=b.Name
from (select a.Id, b.name
from table a ,table b ) c
left join tablea d
on c.id =d.id
and c.name=d.name