Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL, ORA-00947 Nepakanka vertybės Klaida
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 duomenų bazės, toks klaidos pranešimas gali atsirasti, kai neteisingą SQL naudojamas, SQL Plus arba bet kurios siunčia SQL užklausų į duomenų bazėmis, tokiomis kaip saugomas procedūrą arba išorines programas.
PL/SQL: SQL Statement ignored PL / SQL: SQL Statement ignoravo
PL/SQL: ORA-00947: not enough values PL / SQL: ORA-00947: Nepakanka vertybės
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. Priežastis ORA-00947 klaidos, kai SQL reikalauja dvi vertės, ty skaičių stulpelių skaičių ir vertę, kuri yra nurodyta SQL lygus skaičius. But the second part of the query which is column values contains fewer items than the first part which is the number of columns. Bet antrą dalį užklausą, kuri skiltyje vertės yra mažiau, negu pirmoji dalis, kuri yra skaičių stulpelių. 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. Ši klaida gali nutinka visų rūšių SQL - įterpti, atnaujinti arba Pasirinkite - ir jis taip pat gali pasireikšti KUR ar išlygos, kurios zagnieżdżonej subrangos PASIRINKITE grąžina per kelis stulpelius. If the SQL does not specify columns, it means that the values entered are less that the columns existed in the table in database. Jei SQL nenurodo stulpelių, tai reiškia, kad vertybes įrašyti mažiau kolonėlių egzistavo į lentelę duomenų bazėje.
For example, the ORA-00947 error will be returned if you try to execute the following SQL statements: Pavyzdžiui, ORA-00947 klaidos bus grąžinta, kai bandote atlikti šį SQL:
INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES ('1′, 'My Customer'); ĮRAŠYTI Į Klientai (Customer_ID, Customer_Name, gimtadienis) VALUES ('1 ',' Mano kliento ");
or arba
SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID FROM Orders); SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID IŠ užsakymai);
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. Norėdami išspręsti šią klaidą ir ištaisyti problemą, patikrinkite, ar skaičių reikšmių pateikiama skiltyje vertės dalis yra lygi kad stulpelių, arba stulpelių skaičius lentelėje, ir pakeisti SQL jas vienodai.
You can either reduce the number of columns, or increase the number of values provided to the column to make the SQL statement equaled. Galite sumažinti skaičių stulpelių, arba daugiau reikšmių pateikiami skiltyje padaryti SQL lygu. This applies to the nested SQL statements with HAVING or WHERE clause too. Tai taikoma zagnieżdżonej SQL su TURINČIOS arba WHERE per. For example, the correct SQL statements should be like the following: Pavyzdžiui, teisinga SQL, turėtų būti panašiai į šį:
INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES ('1′, 'My Customer', '08/08/1988′); ĮRAŠYTI Į Klientai (Customer_ID, Customer_Name, gimtadienis) VALUES ('1 ',' Mano klientų ",'08 / 08/1988 ');
or arba
INSERT INTO Customers (Customer_ID, Customer_Name) VALUES ('1′, 'My Customer'); ĮRAŠYTI Į Klientai (Customer_ID, Customer_Name) VALUES ('1 ',' Mano kliento ");
or arba
SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID, Customer_Name FROM Orders); SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID, Customer_Name IŠ užsakymai);
or arba
SELECT * FROM Customers WHERE (Customer_ID) IN (SELECT Customer_ID FROM Orders); SELECT * FROM Customers WHERE (Customer_ID) IN (SELECT Customer_ID IŠ užsakymai);
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 lentelė ar vaizdas nėra Oracle Klaida
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Table Klaida
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Lengvai zduplikowane, Kopijuoti arba atsarginę lentelės Oracle, PostgreSQL, DB2 ir SQLite su Sukurkite lentelę Kadangi SQL
- Oracle ORA-14074 Create or Add New Partition Fails Error "Oracle" ORA-14074 Sukurkite arba Pridėti naują Pasiskirstymo fails Klaida
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Naujas, Pridėti arba Splitu Oracle Pasiskirstymo fails su ORA-14080 Klaida
- Oracle EXP-00091 Error When Export Database "Oracle" Tinka iki-00091 Klaida Eksporto duomenų bazė
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Laikinosios Tablespace tuščias Klaida Oracle
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error "Oracle" ORA-01658 Nepavyko sukurti PRADINė mastas už Segmentas į Tablespace Klaida
- Oracle Database Import Error 3113/3114 Oracle Importo Klaida 3113/3114
- IMP-00013 Oracle Import Error IMP-00013 Oracle Importo Klaida









































