oracle11g-oracle 00306 调用‘||’时个数或参数错误

问题描述

oracle 00306 调用‘||’时个数或参数错误

create or replace procedure lable_to_lable_relation is
Cursor phases
is
select distinct lt.phase from lable_temple lt ;

phaseName varchar2(100);

sqlStr varchar2(2000);
begin
--创建标签关系表
sqlStr:='create table SYSTEM.lable_relation (id number(16) primary key, lable_id number(16),parent_id number(16),del_mark number(1),levels number(2))';
EXECUTE IMMEDIATE sqlStr;

--插入数据第一层数据(表的序列为lable_relation_seq_test)
sqlStr:='
insert into lable_relation(id,lable_id,parent_id,del_mark,levels)
select lable_relation_seq_test.nextval,
(select tl.id from test_lable tl where tl.lable_name = A.lableName) as lable_id,
0 as parent_id,
0 as delmark,
(select tl.lable_type_id
from test_lable tl
where tl.lable_name = A.lableName) as leavels
from (select distinct lt.phase as lableName from lable_temple lt) A';
EXECUTE IMMEDIATE sqlStr;
--插入第二层数据信息
for phaseName in phases
Loop
sqlStr:='
insert into lable_relation(id,lable_id,parent_id,del_mark,levels)
select (select tl.id from test_lable tl where tl.lable_name = A.lableName) as lable_id,
(select A.id
from (select lr.id, lr.parent_id, lr.del_mark, lr.levels
from lable_relation lr
where lr.lable_id in
(select tl.id
from test_lable tl
where tl.lable_name ='||phaseName||' )) A
where A.levels = 1
start with A.parent_id = 0
Connect by prior A.id = A.parent_id) as parent_id,
0 as del_mark,
(select tl.lable_type_id
from test_lable tl
where tl.lable_name = A.lableName) as leavels
from (select distinct lt.subject as lableName
from lable_temple lt
where lt.phase ='||phaseName||' ) A';
EXECUTE IMMEDIATE sqlStr;
end Loop;
--插入敌三层数据信息

end lable_to_lable_relation;

时间: 2024-09-11 03:35:56

oracle11g-oracle 00306 调用‘||’时个数或参数错误的相关文章

getdate-带日期参数的存储过程,调用时总提示语法错误

问题描述 带日期参数的存储过程,调用时总提示语法错误 带日期参数的存储过程,直接使用getdate()函数,即写成exec procFD0 '2012-1-1',getdate() 第二个参数总是提示语法错误,不是很明白,大家指导一下. 换一种思路以后,写成下面的样子就通过了: declare @BeginTime datetime declare @EndTime datetime select @BeginTime=dateadd(day,-1,getdate()) select @EndT

微信redirect_uri 参数错误

问题描述 微信redirect_uri 参数错误 从测试服务器改为正式服务器时提示 redirect_uri 参数错误 这是请求路径 https://open.weixin.qq.com/connect/oauth2/authorize?appid=XXXXXXXXXX&redirect_uri=www.91duobao365.com/?/api/weChat/is_code/&response_type=code&scope=snsapi_userinfo&state=i

新人求解救!安装modelsim6.5显示参数错误

问题描述 新人求解救!安装modelsim6.5显示参数错误 试了好多次modelsim6.5安装,但总显示unable to open 'c:winntsystem32odbcconf.tmp' No such file or directory试了网上的方法,安装时不报告参数错误了,但是仿真时还是闪退.到底怎么回事啊?跪求解决方法

oracle-Java调用存储过程一直出现:调用 'TEST' 时参数个数或类型错误

问题描述 Java调用存储过程一直出现:调用 'TEST' 时参数个数或类型错误 解决方案 看下你给进去的参数的数据类型 和 你定义过程的数据类型是否都一直 解决方案二: 你这明显是传入的参数个数和存储过程的参数不一样啊.你直接调试下存储过程,看让你输入几个参数

eb ervice-C# WebService在接收到带参数的接口调用时自动将加密的参数解密

问题描述 C# WebService在接收到带参数的接口调用时自动将加密的参数解密 我的WebService的所有接口调用的参数都是加密过的,而且有接口函数.我在想有没有什么办法,在WebService接收到接口调用请求时,自动将参数解密,而不需要我每个函数内写解密?????? 我暂时没有C币了,有一定奉上 解决方案 我在Spring里面是使用filter过滤器机制来做的!所有的请求都先通过filter,在filter里面做统一的处理,然后再分发到各个具体的controller去.我觉得这种思路

c# 调用vc++写的动态库 时含有指针参数时的问题

问题描述 c#调用vc++写的动态库时含有指针参数时的问题[DllImport("yhybReckoning.dll",EntryPoint="_DataDown_sp@12",CharSet=CharSet.Unicode,CallingConvention=CallingConvention.Cdecl)]publicstaticunsafeexternstringDataDown_sp(stringDownLoadStr,stringDownloadLSH,r

oracle数据库存储过程带输入参数建表的语法和在oracle中调用语法

问题描述 oracle数据库存储过程带输入参数建表的语法和在oracle中调用语法 大神们,随便给几个例子参照一下啊,oracle数据库存储过程带输入参数建表的语法和在oracle中调用语法 解决方案 差不多这个意思,http://zhidao.baidu.com/link?url=lYFB7BBbSoybi5mTurmVbI88Q5R78nnhHyQUiMAhF3B4iyA1OiPCxY4xsRS7v_v0kBdbtCVvVlPHhfY9Rerx7K 解决方案二: create or repl

继承python内置的list,在创建实例时,提示参数个数不正确

问题描述 继承python内置的list,在创建实例时,提示参数个数不正确 class namelist(list): def init(self,a_name,m1): list._init_([]) self.name=a_name self.m=m1 d=namelist('c','m') 报错:Traceback (most recent call last): File "", line 1, in d=namelist('c','m') TypeError: list()

.net动态调用webservice时,如果参数为实体怎么办?

问题描述 .net动态调用webservice时,如果参数为实体怎么办? //生成代理实例,并调用方法 System.Reflection.Assembly assembly = cr.CompiledAssembly; Type t = assembly.GetType(@namespace + "." + classname, true, true); object obj = Activator.CreateInstance(t); System.Reflection.Metho