Oracle PL/SQL ORA-00947 Not Enough Values Error甲骨文PL / SQL的库存- 00947没有足够的价值观错误

In Oracle database, the following error message may appear when an incorrect SQL statement is used, in SQL Plus or in anywhere that send SQL queries to the databases such as stored procedure or external programs.在Oracle数据库中,可能出现下列错误讯息时,一不正确SQL语句是使用,在SQL Plus或在任何地方发送SQL查询到的数据库,如存储过程或外部程序。

PL/SQL: SQL Statement ignored PL / SQL的: SQL语句忽视
PL/SQL: ORA-00947: not enough values PL / SQL的货存状况: - 00947 :没有足够的价值观


The reason for ORA-00947 error is when a SQL statement requires two sets of value, ie number of number of columns and its value that are specified in the SQL to be equal in number.原因是库存- 00947错误是,当一个SQL语句需要两套价值,即数目的列数和它的价值是指定在SQL Server必须在平等的数目。 But the second part of the query which is column values contains fewer items than the first part which is the number of columns.但第二部分的查询,这是列的值包含较少的项目比第一部分是列数。 The error may happens in all kind of SQL statements - Insert, Update or Select - and it can also occur in a WHERE or HAVING clause in which a nested sub-SELECT returns too few columns.该错误可能发生在所有种的SQL语句-插入,更新或选择-和它也可以发生在一个地方,或有在第一个嵌套小组专责的回报太少栏。 If the SQL does not specify columns, it means that the values entered are less that the columns existed in the table in database.如果SQL没有具体栏目,这意味着,价值观进入较少,该栏目中存在的表在数据库中。

For example, the ORA-00947 error will be returned if you try to execute the following SQL statements:举例来说,库存- 00947错误将被退回如果您尝试执行下列SQL语句:

INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES (’1′, ‘My Customer’);插入到客户( customer_id , customer_name ,生日)值( 1 ' , '我的顾客' ) ;

or

SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID FROM Orders);选择*从客户在哪里( customer_id , customer_name )在(选择customer_id从订单) ;

To solve the error and correct the problem, check that the number of values provided in the column values part is equal that the columns specified, or the number of columns in table, and change the SQL statement to make them equal.要解决错误和正确的问题,检查人数的价值观所提供的在该列的值的一部分,是平等的,该栏目指定,或列数在表,并更改SQL语句,使他们平等的。

You can either reduce the number of columns, or increase the number of values provided to the column to make the SQL statement equaled.您可以减少列数,或增加的数目价值观提供给栏,使SQL语句持平。 This applies to the nested SQL statements with HAVING or WHERE clause too.这适用于嵌套SQL语句与拥有或WHERE子句。 For example, the correct SQL statements should be like the following:举例来说,正确的SQL语句应该像以下内容:

INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES (’1′, ‘My Customer’, ‘08/08/1988′);插入到客户( customer_id , customer_name ,生日)值( 1 ' , '我的顾客' , '08 / 1988分之08 ' ) ;

or

INSERT INTO Customers (Customer_ID, Customer_Name) VALUES (’1′, ‘My Customer’);插入到客户( customer_id , customer_name )值( 1 ' , '我的顾客' ) ;

or

SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID, Customer_Name FROM Orders);选择*从客户在哪里( customer_id , customer_name )在(选择customer_id , customer_name从订单) ;

or

SELECT * FROM Customers WHERE (Customer_ID) IN (SELECT Customer_ID FROM Orders);选择*从客户在哪里( customer_id )在(选择customer_id从订单) ;

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 .



Leave a Reply离开的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

ORA-00947 库存- 00947 - - ORA-00947: not enough values 库存- 00947 :没有足够的价值观 - - PL/SQL: ORA-00947: not enough values PL / SQL的货存状况: - 00947 :没有足够的价值观 - - ORA 00947 库存00947 - - not enough values 没有足够的价值观 - - oracle not enough values 甲骨文公司没有足够的价值观 - - cause a time delay in an oracle insert 事业会有一段时间的延迟在一个Oracle插入 - - not enough value Oracle 没有足够的价值,甲骨文 - - PL/SQL: ORA-00947 PL / SQL的货存状况: - 00947 - - PLS-00947 薪酬水平调查- 00947 - - PL/SQL: ORA-00947: not enough values PL / SQL的货存状况: - 00947 :没有足够的价值观 - - sql not enough values 的SQL没有足够的价值观 - - oracle ORA-00947: not enough values 甲骨文库存- 00947 :没有足够的价值观 - - PLSQL PL/SQL: ORA-00947: not enough values plsql PL / SQL的货存状况: - 00947没有足够的价值观 - - ora-00947 not enough values 库存- 00947没有足够的价值观 - - oracle "not enough values" 甲骨文公司“没有足够的价值观” - - ora-00947 insert 库存- 00947插入 - - find error value with ORA in oracle 找到错误的价值与库存在Oracle - - not enough values 没有足够的价值观 - - inserting only few values in the table pl/sql 插入只有极少数的价值观在表中PL / SQL的 - - oracle pl/sql error 甲骨文PL / SQL的错误 - - PL/SQL: ORA-00947: not enough values in oracle PL / SQL的货存状况: - 00947 :没有足够的价值观,在Oracle - - SQL Error ORA-00947 SQL错误库存- 00947 - - no enough values in oracle 没有足够的价值观,在Oracle - - PL/SQL: SQL Statement ignored PL / SQL的: SQL语句忽视 - - error 3114 create new item oracle 错误3114创建新的项目,甲骨文 - - not enough values error 没有足够的价值观错误 - - ORA-00947: not enough values 库存- 00947 :没有足够的价值观 - - "ORA-00947: not enough values" “ + - 00947 :没有足够的价值观” - - 00947 00947 - - NOT ENOUGH VALUES SQL 没有足够的值的SQL - - oracle pl/sql on serbian 甲骨文PL / SQL的对塞尔维亚 - - SQL Error: ORA-00947 SQL错误:库存- 00947 - - SQL Error: ORA-00947: not enough values SQL错误:库存- 00947 :没有足够的价值观 - - select in PL/SQL INSERT into table values 选择在PL / SQL的插入到表的价值观 - - Not enough values Oracle error 没有足够的价值观Oracle错误 - - Error(113,43): PL/SQL: ORA-00947: not enough values 错误( 113,43 ) : PL / SQL的货存状况: - 00947 :没有足够的价值观 - - error not enough values 错误没有足够的价值观 - - oracle pl/sql error checking 甲骨文PL / SQL的错误检查 - - oracle error not enough values Oracle错误没有足够的价值观 - - enter value for + oracle pl/sql error 输入值+甲骨文PL / SQL的错误 - - Oracle "PL/SQL" "@SQLStatement" 甲骨文“ PL / SQL的” , “ @ sqlstatement ” - - pls 00947 薪酬水平调查的00947 - - ORA-00947: Niet genoeg waarden 库存- 00947 : niet genoeg waarden - - ORA-00947: not enough values shutdown 库存- 00947 :没有足够的价值观关机 - - ORA-00947: not enough values in oracle 库存- 00947 :没有足够的价值观,在Oracle - - oracle pl/sql free video 甲骨文PL / SQL的免费视频 - - ORA:00947 Not enough values in Oracle 库存: 00947没有足够的价值观,在Oracle - - PL\SQL+SELECT+not enough values 特等\的SQL +选择+没有足够的价值观 - - pl/sql "not enough values" PL / SQL的“不足够的价值观” - -