我在editplus里写的if...then总是报错
SP2-0734: unknown command beginning "if Qty_ord..." - rest of line ignored.
update part set qty_stock=qty_stock+Qty_ordered where part_no= 3001
*
ERROR at line 1:
ORA-00904: invalid column name
哪位高手帮帮我???
SP2-0734: unknown command beginning "if Qty_ord..." - rest of line ignored.
update part set qty_stock=qty_stock+Qty_ordered where part_no= 3001
*
ERROR at line 1:
ORA-00904: invalid column name
哪位高手帮帮我???
解决方案 »
- 求一个存储过程的写法,我写了两个查询语句,但不知道怎么用存储过程连起来,请高手教我
- 在书上看到这么一段关于Oracle的Having子句的解释
- PL/sql导入,导出数据
- ORACLE-SQLCODE=-911是什么问题
- isqlplussvc.exe-应用程序错误
- ORA-12541: TNS:没有监听器
- 一些配置文件的编写规格,请帮忙
- oracle11 可以用isqlplus 吗?
- system 无法用normal身份连接登陆
- 请问Database,Schema,Catalog三者之间的区别
- 求一个触发器,本人不懂oracle
- oracle在java存储过程中如何创建和删除 txt文件呢,是否需要授权呢
update part set qty_stock=qty_stock+(select Qty_recieved from detail where order_no=&rec)
where part_no=#
小妹初学者,这个问题困扰我好久了~~~
根据楼主的语句意思,修改如下:
if Qty_ordered=Qty_recieved+&rece and order_no=&rec then
update from part
set qty_stock = qty_stock || 'select Qty_recieved from detail where order_no=&rec'
where part_no=#
end if;不知道语句有没有理解错,如果不妥,请楼主用文字详细叙述,本人再行修改。
begin
if ... then
......
end if
end;