易截截图软件、单文件、免安装、纯绿色、仅160KB

Oracle 批量更新

麻烦大家帮我看一下这个sql语句为什么不对。
update
(

select stom.qty qty ,std.stocktaking_qty  stocktaking_qty
from stocktaking_master stm,stocktaking_detail std ,storage_master stom
          where stm.stocktaking_no = '10000000000001 ' and std.stocktaking_no = stm.stocktaking_no
              and stom.warehouse_no = stm.warehouse_no and stom.product_no = std.product_no and
              stom.lot_no = std.lot_no
          )
          set qty = stocktaking_qty

SQL code:
update storage_master stom
set qty = (select std.stocktaking_qty
from stocktaking_master stm, stocktaking_detail std
where stm.stocktaking_no = '10000000000001 '
and std.stocktaking_no = stm.stocktaking_no
and stom.warehouse_no = stm.warehouse_no
and stom.product_no = std.product_no
and stom.lot_no = std.lot_no
and rownum < 2)


SQL code:
update storage_master stom
set qty = (select std.stocktaking_qty


相关问答:

oracle 10g web登陆EM的问题? - Oracle / 基础和管理

安装了Oracle 10g,默认安装了orcl数据库,这个数据库能不能删除啊,还有我如果新建了其他数据库,怎么知道在web中登陆不同数据库的地址啊?

1
可以删除
2
在WEB地址栏中输入地址的时候指定新创建的数据库的IP ......

Oracle 数据导出问题 - Oracle / 高级技术

exp user/password@dbname file=c:\table.dmp tables=jbitaku,jbitakum grants=y
然後按回車鍵 說明:  user/password@dbname  分別表示用戶名,密碼和服務名 f ......

[原创] ORACLE 连接字串 - Oracle / 非技术区

假设table01 中有 以下资料
emp_no emp_name
------- ------------
0001 TOM
0002 JOHN
0003 MARY
常用电话 
而我们要得到以下的OUTPUT (或是各种其他的output)
0001,TOM
0002,JOHN ......

请教Oracle事务隔离级别问题 - Oracle / 非技术区

查看事务隔离级别的命令,
MySQL使用的是select @@tx_isolation;
在Oracle中查看事务隔离级别的命令是哪个?

SQL code:

SELECT /*+ rule */ s.username,decode(l.type,'TM','TABLE LOCK','TX','ROW LOCK', ......

oracle 执行顺序 - Oracle / 基础和管理

SQL code:

declare
v_deptno number(2);
v_dname varchar2(14);
begin
dbms_output.put_line('请输入部门号和部门名:');
v_deptno:=&deptno;
v_dname:='&dname';
insert into dept01(deptno,dnam ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号