再问一个问题:sql语句查询功能 select a.id,'' as 成绩from a where a.id not in (select id from b) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select id,姓名 from a where id not in (select id from b) select a.*,b.* from a left join b on a.id=b.id where b.id is null --是要写到b表里吧insert b(id,成绩)select id,0 as 成绩 from a where not exists(select 1 from b where a.id=b.id) xingfuniao(幸福鸟),谢了!同时也谢谢各位了! sql2008 相同数据库内容复制 怎么查看在sql中新建帐号用户权限??? 求脚本 SQL数据库表转化成(VFP)DBF数据库表膨胀 在线等!!!!!!!!!!! Access转化为sql的问题请教! 非常困惑的问题 BACKUP DATABASE job failed, 但是有点莫名其妙。。。 一个关于jdbc-odbc桥的棘手问题 如何提高存储过程的执行效率!各种方法都可以谈谈!过程体的大小对执行效率的影响大不大? 求sql 语句 怎样从A表中取出一列插入到不止一列的B表? 如何利用存储过程导入数据!
insert b(id,成绩)
select id,0 as 成绩 from a
where not exists(select 1 from b where a.id=b.id)