删除一个表table1中的数据,where条件是table1的某几列=table2的某几列,该如何写sql?delete from table1
where table1.id = table2.id
and table1.code = table2.code
where table1.id = table2.id
and table1.code = table2.code
解决方案 »
- 组合主键中其中一个字段是否能为null
- A服务器死机后 数据库盘符不自动挂起到B服务器上!!
- 存储过程中访问同一数据库不同表空间,为什么不能用用户名点表空间
- 在AIX环境下,我安装了一个ORACLE,但是当我执行命令sqlplus /nolog时并没有进入SQL〉而是进入$提示符,请问是什么原因?
- 有没有oracle10安装的教程或视频下载?
- 弱弱的问:如何用一条SQL完成分列统计归类?
- 怎样把从mysql数据库中导出的数据到入到oracle数据库中
- 关于ERWin
- 在ibatis中怎么写clob的插入语句
- 立即查询与存储过程查询结果不一至
- Oracle安装的问题
- 一个简单但不好回答的问题,有点唐僧
where (id,code) in (select id,code from table2);
where exists (select 1 from table2 b where a.id=b.id and a.code=b.code);
where exists (select 1 from table2 b where a.id=b.id and a.code=b.code);