update big a set value=(select s_value from sml b where a.id=b.s_id) where a.id in (select s_id from sml)
解决方案 »
- 如果分数 > 70分,全部排名第一,其余的按降序排名,一条SQL如何实现
- oracle函数中使用游标
- oracle10g 主机身份证明
- 字符串拆分
- oracle 11g r2 安装出错
- Oracle date类型
- 在同一编译环境下有时能访问oracle数据库,有时不能.请问为何?
- 在线等答案:起ORACLE时报:ORA-01113: file 3 needs media recovery 错误 (小女子,请个位大哥,多多帮忙)
- 在数据字典中直接修改Oracle表列名, 从而实现修改表列名,不知道对大家又没有启发
- 数据库转移应注意那些问题 有道理就有分
- 请教oracle数据库update语句
- 怎么根据一个表的数据批量update另一个表的数据啊
set value=(select s_value from sml b where a.id=b.s_id)
where exists(select 1 from sml b where a.id=b.s_id)
TableA 表的字段: Num Number(5),Name VarChar(20)TableB 表的字段: Num Number(5),Name VarChar(20),IsOld Number(1) Default 0用 SQL 2000 的描述方法是:
Update B
set B.Name = A.Name,B.IsOld = 0
from TableA A,TableB B
where A.Num = B.Num and B.IsOld = 1;
在 ORACLE 中怎实现?