Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle 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 או בכל מקום שיש לשלוח שאילתות 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 כדי להשתוות במספר. 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'); INSERT INTO לקוחות (Customer_ID, Customer_Name, יום הולדת) Values ('1 ',' הלקוח שלי ');
or או
SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID FROM Orders); * בחר מלקוחות איפה (Customer_ID, Customer_Name) ב (בחר Customer_ID FROM הזמנות);
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 עם הצהרות או שבהן נתקל בסעיף מדי. 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′); INSERT INTO לקוחות (Customer_ID, Customer_Name, יום הולדת) Values ('1 ',' הלקוחות שלי ','08 / 08/1988');
or או
INSERT INTO Customers (Customer_ID, Customer_Name) VALUES ('1′, 'My Customer'); INSERT INTO לקוחות (Customer_ID, Customer_Name) Values ('1 ',' הלקוח שלי ');
or או
SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID, Customer_Name FROM Orders); * בחר מלקוחות איפה (Customer_ID, Customer_Name) ב (בחר Customer_ID, FROM Customer_Name הזמנות);
or או
SELECT * FROM Customers WHERE (Customer_ID) IN (SELECT Customer_ID FROM Orders); * בחר מלקוחות איפה (Customer_ID) ב (בחר Customer_ID FROM הזמנות);
IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף הוא מכונה בתרגום ובתנאי "כמות שהוא", ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to אנא פנה ל original English article המאמר המקורי באנגלית whenever possible. ככל שניתן.
Related Articles מאמרים קשורים
- ORA-00942 Table or View Does Not Exist Oracle Error אורה-00942 טבלה או תצוגה לא קיים Oracle שגיאה
- ORA-02449 Oracle Drop Table Error אורה-02449-Oracle זרוק שגיאה טבלה
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL בקלות כפולה, העתקה או גיבוי טבלאות ב-Oracle, PostgreSQL, DB2 ו SQLite צור עם לוח כמו SQL
- Oracle ORA-14074 Create or Add New Partition Fails Error אורה-14074-Oracle צור או הוסף המחיצה החדשה אינה שגיאה
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error יצירה, הוספה או פיצול Oracle Database מחיצה נכשל עם שגיאה אורה-14080
- Oracle EXP-00091 Error When Export Database EXP-00091-Oracle שגיאה כאשר יצא מסד נתונים
- ORA-25153 Temporary Tablespace is Empty Error in Oracle אורה-25153 זמניים Tablespace ריקה שגיאה ב-Oracle
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error אורה Oracle-01658 לא ניתן ליצור הראשונית מידה עבור קטע ב Tablespace שגיאה
- Oracle Database Import Error 3113/3114 Oracle Database ייבוא שגיאה 3113/3114
- IMP-00013 Oracle Import Error שובב-00013-Oracle יבוא שגיאה









































