English 中文(简体)
甲骨质“SQL Error:遗失的活胎或深层参数,指数: 1)
原标题:Oracle "SQL Error: Missing IN or OUT parameter at index:: 1"

我的文体如下:

variable L_kSite number;
variable L_kPage number;
exec SomeStoredProcedureThatReturnsASite( :L_kSite );
exec SomeStoredProcedureThatAddsAPageToTheSite( :L_kSite, :L_kPage );
update SiteToPageLinkingTable 
set HomePage = 1 
where kSite = :L_kSite and kPage = :L_kPage;

值得注意的是,最后一份声明是有效使用一个约束变量,但当我试图将文字放在最后一行时:

SQL Error: Missing IN or OUT parameter at index:: 1

我不敢肯定,在I m不特别富于Oracle的情况下,怎么办。

最佳回答

根据上述评论,我把这个问题放在了“q”之下,而不是“开发商”之下,而“世界发展基金会”声明是完美无缺的,因此,我相信这是开发商的一个问题,特别是因为没有追回的错误号码。 感谢你领导我正确方向。

问题回答

在我使用贾瓦法典时,我对我有同样的错误。

,该网站(第二台wn子)显示,你试图用一个缺失的参数进行询问。

例如:

exec SomeStoredProcedureThatReturnsASite( :L_kSite );

你试图在没有最后参数的情况下执行询问。

或许可以在<条码>SQL Plus上,它没有相同的要求,因此它可能已经在那里工作。

我认为它与jdbc有关。

在我有类似情况时,我也存在同样的问题(推迟时间):

a = :namedparameter and b = :namedparameter

ok,我喜欢:

a = :namedparameter and b = :namedparameter2  (the two param has the same value)

So it s a problem with named parameters. I think there is a bug around named parameter handling, it looks like if only the first parameter get the right value, the second is not set by driver classes. Maybe its not a bug, only I don t know something, but anyway I guess that s the reason for the difference between the SQL dev and the sqlplus running for you, because as far as I know SQL developer uses jdbc driver.

我犯了同样的错误,认为原因是错误的或缺失的foreign key。 (Using JDBC)

我之所以有这一错误,是因为在一栏中添加了一个问题标记(例如合同,作为合同参照?)的部分。 (f)

我在Skker曾发过问题,因为我使用了不正确的约束。 采用这一方法,从原木中复制:

变量=?

应当

变量=:可变

现在 培养者促使我接受价值观。

在某些用户设置上,我偶尔也出现同样的错误,而另一些用户则对同一报告感到满意。 我在经过修改的案件上写了我的参数,也没有写明信,例如: Henkilö。 我把他们改为欧洲劳工组织,只使用上门案件,不使用任何 nor子,而是用了trick。

司机对Oracle的某种身份不明或各不相同的JDBC版本。

My error desc was originated from some 3rd party bin: Excel Plugin Error: Failed executing statement (Missing IN or OUT parameter at index:: 4) SQL Statement failed. Please verify and correct it!





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

How to make a one to one left outer join?

I was wondering, is there a way to make a kind of one to one left outer join: I need a join that matches say table A with table B, for each record on table A it must search for its pair on table B, ...

Insert if not exists Oracle

I need to be able to run an Oracle query which goes to insert a number of rows, but it also checks to see if a primary key exists and if it does, then it skips that insert. Something like: INSERT ALL ...

How can I store NULLs in NOT NULL field?

I just came across NULL values in NOT-NULL fields in our test database. How could they get there? I know that NOT-NULL constraints can be altered with NOVALIDATE clause, but that would change table s ...

Type reference scope

I m studying databases and am currently working on a object-relational DB project and I ve encountered a small problem with the number of possible constraints in an object table. I m using "Database ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

热门标签