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 بلادي الرقمي الحياة المنتديات .
Related Articles المواد ذات الصلة
- Oracle Database Import Error 3113/3114 استيراد قاعدة البيانات أوراكل خطأ 3113/3114
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error خلق ، وإضافة أو سبليت قاعدة البيانات أوراكل التقسيم فشل مع خطأ ORA - 14080
- How to Escape Characters in Oracle PL/SQL Queries كيف الفرار حرفا في أوراكل رر / مزود الاستفسارات
- Manual and Clean Uninstall Oracle for Windows دليل نظيفة وأوراكل لازالة تثبيت ويندوز
- ORA-00942 Table or View Does Not Exist Oracle Error أورا - 00942 الجدول أو رأي لا وجود خطأ أوراكل
- ORA-02449 Oracle Drop Table Error أورا - 02449 أوراكل إسقاط الجدول خطأ
- Oracle EXP-00091 Error When Export Database أوراكل إكسب - 00091 خطأ عند تصدير قاعدة البيانات
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error أوراكل ORA - 01658 تعذر إنشاء أولي لمدى في الجزء Tablespace خطأ
- Oracle JDeveloper Reviews أوراكل JDeveloper الاستعراضات
- ORA-01502 Oracle Index in Unusable State ORA - 01502 أوراكل مؤشر غير صالح للإستعمال في الدولة
































