Oracle PL/SQL ORA-00947 Not Enough Values Error OracleのPL / SQLのに十分な値エラーが発生しないのOra - 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プラスまたはSQLクエリを送信するなどのデータベースのストアドプロシージャをまたは外部プログラムです。
PL/SQL: SQL Statement ignored PL / SQLの: SQLステートメントを無視する
PL/SQL: ORA-00947: not enough values PL / SQLの: 502個- 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.その理由のORA - 00947エラーが発生すると、 SQL文が必要なときに2つの値のセットを、すなわち数のカラム数を指定し、その値では平等にするには、 SQLされる番号です。 But the second part of the query which is column values contains fewer items than the first part which is the number of columns.しかし、 2番目の部分が含まれ、クエリのカラムの値がより少ない商品の最初の部分のカラム数をこれは、 。 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. 5月のエラーが起こるかをすべての種類のSQLステートメント-挿入、更新、または選択してください-とどこかで発生することもできます。H A VING句では、ネストされたサブ戻り値が少なすぎます列を選択します。 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:たとえば、メールORA - 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); SELECT * FROM得意先場所( 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ステートメントの列を作るequaled 。 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); SELECT * FROM得意先場所( customer_id 、 customer_name ) ( customer_idを選択し、 customer_nameより受注) ;
orまたは
SELECT * FROM Customers WHERE (Customer_ID) IN (SELECT Customer_ID FROM Orders); SELECT * FROM得意先場所( 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 私のデジタルライフフォーラム .です。
Related Articles関連記事
- Oracle Database Import Error 3113/3114 Oracleデータベースにインポートエラーが発生3114分の3113
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error作成、追加、またはOracleデータベースのパーティション分割が失敗するのOra - 14080エラーが発生
- ORA-00942 Table or View Does Not Exist Oracle ErrorメールORA - 00942テーブルまたはビューが存在しない場合はOracleのエラーが発生
- ORA-02449 Oracle Drop Table Errorエラーが発生OracleのドロップテーブルのOra - 02449
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace ErrorオラクルのOra - 01658の範囲の最初のセグメントを作成できない場合は、テーブルスペースのエラーが発生
- ORA-01502 Oracle Index in Unusable StateメールORA - 01502 Oracleのインデックスを使用不能な状態に
- Manual and Clean Uninstall Oracle for Windowsオラクル、 Windowsのマニュアルおよび清潔度をアンインストール
- Oracle ORA-14074 Create or Add New Partition Fails ErrorオラクルのOra - 14074新しいパーティションを作成または追加に失敗するエラーが発生
- How to Rename or Move Oracle Tablespace Datafile to Another Location Oracleのテーブルスペースの名前を変更する方法についてまたはDATAFILEのを別の場所に移動する
- How to Escape Characters in Oracle PL/SQL Queries文字をエスケープする方法をOracleのPL / SQLのクエリ












