update c set useid=(select max(a.useid) from a,b where a.id1=b.id1 and a.id2=b.id2 and
a.id3=b.id3 and b.bid=c.bid)
where exists(select 1 from a,b where a.id1=b.id1 and a.id2=b.id2 and
a.id3=b.id3 and b.bid=c.bid);
a.id3=b.id3 and b.bid=c.bid)
where exists(select 1 from a,b where a.id1=b.id1 and a.id2=b.id2 and
a.id3=b.id3 and b.bid=c.bid);
解决方案 »
- 在Toad工具里面不能同时创建多个表
- 请问这个触发器怎么写
- 求救 ORA-22859: 无效的列修改
- Oracle中屏蔽主外键
- 语法哪里出错了?
- 【求助】sql中如何筛选掉重复的记录,并计数???
- 求大神指点oracle挂死的问题ORA-00600: internal error code, arguments: [2023], [0],
- 请问哪里有对数据库设计性能对比的资料?
- 修改sys密码不可以,为什么》
- 环境:windows2003+oracle9i+asp程序中使用odbc方式连接,程序运行一会后总容易连接中断??
- Oracle Http Server启动不正常的问题!
- 怎么查询oracle数据库连接的用户数
然后,下面的select 1有什么意义吗?小弟不才,这里有点看不懂。谢谢指导!1
你也可以写成select a.id1,b.id1 from a,b
关键在exists
a表
useid id1 id2 id3
1 001 002 003
2 004 005 006
3 007 008 009
4 007 008 009