在plsql里面操作的 create or replace procedure UP_DXPT_BB_ZWSR is vert varchar2(10000); begin --从账务提取收入数据到临时表 vert :='create table test_dxpt_zwsr as (select t.sort_line as VCHID, t.sort_line as BILLIDS, t.set_year as set_year, t.cre_money as CRE_MONEY from syzw.voucher_detail_budget t where t.as_code like "4%" and t.set_year=2014 and substr(latest_op_date,1,10) >=to_char((sysdate -interval ''7'' day),''yyyy-mm-dd'') ) '; execute immediate vert; commit;
end UP_DXPT_BB_ZWSR; 创建了一个存储过程,然后复制表的数据到新的临时表里面,但是我测试执行存储过程的时候提示表或者视图不存在, 2个数据库在同一实例里面。想知道为什么在线等
最新回答
狙击甜心
2025-06-21 03:20:21
你是意思是UP_DXPT_BB_ZWSR 执行报表或者视图不存在 ?
那你先确认下 select t.sort_line as VCHID, t.sort_line as BILLIDS, t.set_year as set_year, t.cre_money as CRE_MONEY from syzw.voucher_detail_budget t where t.as_code like "4%" and t.set_year=2014 and substr(latest_op_date,1,10) >=to_char((sysdate -interval ''7'' day),''yyyy-mm-dd'') 执行有没有问题
追问
分数给你了, 问题解决了 原来存储过程不让点表,我用了database link 解决了 不过还是谢谢你