Oracle PL/SQL ORA-00947 Not Enough Values Error أوراكل رر / مزود أورا - 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. في قاعدة بيانات أوراكل ، رسالة الخطأ التالية قد تبدو غير صحيحة عندما يستخدم مزود البيان ، في مزود زائد أو في أي مكان مزود الاستفسارات التي ترسل إلى قواعد البيانات المخزنة مثل إجراء أو برامج خارجية.

PL/SQL: SQL Statement ignored رر / مزود : مزود تجاهل بيان
PL/SQL: ORA-00947: not enough values رر / مزود : ORA - 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 هو خطأ عندما مزود بيان يتطلب مجموعتين من حيث القيمة ، وعدد من أي عدد من الأعمدة والتي هي القيمة المحددة في مزود ليكون على قدم المساواة في عدد. 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. الخطأ قد يحدث في كل نوع من مزود بيانات -- تضاف ، تحديث أو اختر -- ويمكن أيضا أن تحدث في المكان او شرط في بأسلحة التي متداخل الفرعي اختر عودة عدد قليل جدا من الأعمدة. If the SQL does not specify columns, it means that the values entered are less that the columns existed in the table in database. وإذا كان لا يحدد مزود الأعمدة ، وهو ما يعني أن القيم التي دخلت هي أقل أن الأعمدة موجودة في الجدول في قاعدة البيانات.

For example, the ORA-00947 error will be returned if you try to execute the following SQL statements: فعلى سبيل المثال ، ORA - 00947 خطأ سوف تعاد إذا كنت محاولة لتنفيذ مزود البيانات التالية :

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. لحل هذا الخطأ وتصحيح المشكلة ، التحقق من أن عددا من القيم المنصوص عليها في العمود القيم هو جزء على قدم المساواة أن الأعمدة المحددة ، أو عدد الأعمدة في الجدول ، وتغيير مزود بيان لجعلها على قدم المساواة.

You can either reduce the number of columns, or increase the number of values provided to the column to make the SQL statement equaled. يمكنك إما تقليل عدد الأعمدة ، أو زيادة عدد القيم المقدمة إلى العمود لجعل مزود بيان يساوى. This applies to the nested SQL statements with HAVING or WHERE clause too. وهذا ينطبق على البيانات متداخل مع مزود بأسلحة أو حيث شرط للغاية. For example, the correct SQL statements should be like the following: فعلى سبيل المثال ، مزود بيانات صحيحة وينبغي أن يكون مثل ما يلي :

INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES (’1′, ‘My Customer’, ‘08/08/1988′); أدخل إلى عملاء (Customer_ID ، Customer_Name ، عيد ميلاد) القيم ( '1' ، 'بلدي العملاء' ، '08/ 08/1988') ؛

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> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><ديل datetime = ""> <em><i><qcite=""> <strike><strong>

Subscribe without commenting اكتتاب دون التعليق


Custom Search

New Articles المواد الجديدة

Incoming Search Terms for the Article ابحث الواردة للشروط المنصوص عليها في المادة

PL/SQL: ORA-00947: not enough values رر / مزود : ORA - 00947 : لا يكفي القيم - -- insert into + values + plsql تضاف إلى القيم + + plsql - -- not in sql oracle ليس في مزود أوراكل - -- oracle sql not in لا مزود أوراكل في - -- oracle not enough values أوراكل لا يكفي القيم - -- ORA-00947: insert into ORA - 00947 : تضاف إلى - -- ORA-00947: not enough values ORA - 00947 : لا يكفي القيم - -- pl/sql statement ignored رر / مزود تجاهل بيان - -- PL/SQL: ORA-00947: not enough values + pl sql رر / مزود : ORA - 00947 : لا يكفي القيم + مزود رر - -- select into ora 00947 اختيار إلى أورا 00947 - -- sql insert not enough values مزود تضاف القيم لا يكفي - -- not enough values لا يكفي القيم - -- sql STATEMENT IGNORED ORACLE مزود تجاهل بيان أوراكل - --