红色部分不能更改 黑色部分可以自由输入
select * from aaa where id='340601000004'
想在查询语句内嵌套更新语句(update bbb set a=80,b=80 where id='340601000004')
select * from aaa where id='340601000004'
想在查询语句内嵌套更新语句(update bbb set a=80,b=80 where id='340601000004')
解决方案 »
- 关于 win 7 下安装Oracle
- oracle 10g decode函数
- 求高手指点一下,存储过程的参数太长怎么办,用什么类型可以?
- 请各位帮忙推荐几本学习REPORT BUILDER的书
- ASP连接ORACLE出错 ORA-12541
- oracle中写function的问题!
- 问一个弱弱的问题,小弟刚学oracle。请各位大虾指点。
- 在VB.net中调用oracle数据库里的procedure的问题,返回值总是nothing?
- 请问各位:能不能介绍几本或者几篇关于使用tord的书阿?
- 如何实现oracle数据库查询?
- oracle查询最大值的问题
- ORA-00979: not a GROUP BY expression
using (
select * from aaa where id='340601000004'
) t2
on t1.id = t2.id
when matched then
update set set a=80,b=80
但用临时表也行
update BBB set a=80,b=80 where id in (select id from aaa)不知道这样是不是要的结果。。
如果你字段A和B更新的值不确定的话,这样不行了。
只能update .....(select ....).
拼接也出不来你那效果。
update BBB set a=80,b=80 where id in (select id from aaa where id='340601000004')
这句话是不是和你这一个意思?