求SQL语句 A和B表中有共同的字段tempid怎么将A表中B中没有的tempid的数据插入到B表且对已插入的数据不能再次插入求!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 insert bselect c.* from a, b c--c是别名where a.tempid <> c.tempid insert b(tmpid)select a.tmpid from awhere a.tempid not in (selec tempid from b) into?//---------------------------//不行 insert into t1select id,name from t2where id not in (select t1.id from t1,t2 where t1.id=t2.id) A,B有不同类型的字段吗name 随便替换一个值。 insert b(tmpid)select a.tmpid from awhere a.tempid not in (selec tempid from b) not in (selec tempid from b) 可以,但速度很慢, 求分数线问题 求一个人事管理系统,基本的录入和查询功能即可 如何实现这样的功能? 这个动态的DataSource.onchange := SetDeptId;事件怎么不行? 我在执行时,发现数据库插入了数据,但是出现错误 如何复制sqlserver数据库 如何实现窗口缩小到托盘区域的那段动画效果? 类型转换,非常奇怪的问题。高手进来 DLL问题,有个过程在EXE文件中时调用没有错,换成DLL中后invalid class typecast 江门市或深圳的DELPHI高手可以留下QQ吗? 关于时间的查询,SQL语句不会写 连接oracle问题,重分求救!
select c.* from a, b c--c是别名
where a.tempid <> c.tempid
select a.tmpid from a
where a.tempid not in (selec tempid from b)
//---------------------------//
不行
select id,name from t2
where id not in (select t1.id from t1,t2 where t1.id=t2.id)
name 随便替换一个值。
select a.tmpid from a
where a.tempid not in (selec tempid from b)