if not exists(select * from b inner join a where a.id=b.id)
update b set....
insert into b ....
update b set....
insert into b ....
解决方案 »
- 怎样查找数据库中最近的改动
- 一个简单的insert语句,好像不难,但确实不会。谢谢。
- 请问如何从在cs文件里接收存储过程里查询出来的数据,并且绑定到gridview上
- SQL2000中能不能用集合运算符???
- 高手救命,我的一个重要的数据库损坏了,修复好了,给多少分都行!等待。。。
- sql 2005 三表查询分组统计 好难啊
- SQL SERVER 2005 安装失败
- sql2000 数据库 字段大小大于4000,该用什么字段类型?
- SMALLDATETIME类型字段能否为‘空串’???
- 请问如何获得表的字段?
- 急!远程已经连到数据库上了,!,可是再联一次,就出错了,"远程服务器以存在了,!"请问怎么判断远程服务器是否存在?? 如果存在就删除 的 语句?
- 初级-简单的SQL语法问题
select * from A where not exists(select * from B where A.key=B.key)
insert b (....)
select .... from a where b.id not exists (select id from a)