oracle存储过程中创建视图编译不通过 pls-00114

语句如下:

create or replace procedure pro_ci_main(p_mode in varchar2) is

  v_1 varchar2(4000);

begin

  --加载客户公司名称信息

  v_1 := "create or replace view v_company_info(cust_id, company_name) as select cust_id, WMSYS.WM_CONCAT(nvl(company_name, 'NULL')) from t_customer_address_info addr, t_customer tc where tc.collection_status = (select id from t_sys_code where code_category = 'CCST' and code = '02') and tc.id = addr.cust_id and addr.address_category = (select id from t_sys_code where code_category = 'ADCA' and code = '02') group by cust_id";

  execute immediate v_1;

end pro_ci_main;

参与8

2同行回答

haleehalee数据库管理员fiberhome
v_1 varchar2(32000);显示全部

v_1 varchar2(32000);

收起
软件开发 · 2015-10-15
浏览1979
dd1641321861dd1641321861商业智能工程师deng
有没有报错信息?显示全部

有没有报错信息?

收起
IT咨询服务 · 2015-10-14
浏览2066
  • PROCEDURE PRO_CI_MAIN 编译错误 错误:PLS-00114: identifier 'create or replace view v_compa' too long 行:5
    2015-10-14

提问者

SD_liuguixiu
研发工程师AUSXIN

问题状态

  • 发布时间:2015-10-14
  • 关注会员:4 人
  • 问题浏览:3507
  • 最近回答:2015-10-15
  • X社区推广