1. 创建存储过程编译错误 错误:PL/SQL: ORA-00933:sql命令未正确结束
select item_d,sum(item_d_qty) as qty from cc_result_stand_bom_begin
where item_d_class='M'and code=code and company=COMPANY
group by code,item_d
这里的group by 有问题吧
要对所有查找的数据进行group by
group by item_d,qty
2. 存储过程 编译错误 错误:PL/SQL: ORA-00933: SQL 命令未正确结束 行:15 文本:update
oracle不支持update from 的语法,
可以用 下面的语法:
update a set a.col2 = (select b.col2 from b where a.colid = b.colid)
where exists(select 1 from b where a.colid = b.colid)
3. ORA-00933:SQL 命令未正确结束
恭喜lz,接个分,采纳我吧,呵呵。
4. oracle 存储过程提示这是生成的提示ORA-00933: SQL 命令未正确结束 生成的在 在pL/sql下正常运行
正常,你的存储过程中的sql语句不正确
5. 执行oracle存储过程的时候,提示在①那个地方报命令未正确结束
select * from B where city_code =upp; //这句话有什么用?貌似没有用到么
oracle里面没有这种语法,有两种方式你可以尝试
select xxx into 到变量里。如select xxx into A,然后insert into B values(A);
select xxx from xxx。如:
insert into B
select (select a from A),(select b from A) from al;