Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 Nie Dostatočný Hodnoty Chyba
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. V Oracle databáze, zobrazí sa nasledujúce chybové hlásenie sa môže vyskytnúť pri nesprávnom výkazu SQL sa používa v SQL Plus alebo kamkoľvek, že pošle SQL dotazov do databázy, ako sú uložené procedúry alebo externých programov.
PL/SQL: SQL Statement ignored PL / SQL: SQL Vyhlásenie ignorovaná
PL/SQL: ORA-00947: not enough values PL / SQL: ORA-00947: nestačí hodnoty
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. Dôvodom ORA-00947 chybou je, keď sa SQL vyhlásenie vyžaduje dve sady hodnotu, tj počet počet stĺpcov a ich hodnôt, ktoré sú špecifikované v SQL sa rovná počtu. But the second part of the query which is column values contains fewer items than the first part which is the number of columns. Ale na druhú časť otázky, ktorá je stĺpec hodnôt obsahuje menej položiek, ako prvá časť, ktorá je počet stĺpcov. 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. Táto chyba môže sa deje vo všetkých druh vyhlásenia SQL - INSERT, UPDATE alebo Vybrať - a môže dôjsť aj v KDE, alebo s doložkou, v ktorej vnořené sub-SELECT vracia príliš málo stĺpcov. If the SQL does not specify columns, it means that the values entered are less that the columns existed in the table in database. Ak SQL nešpecifikuje stĺpce, znamená to, že sú zadané hodnoty menšie ako stĺpy existovali v tabuľke v databáze.
For example, the ORA-00947 error will be returned if you try to execute the following SQL statements: Napríklad, ORA-00947 chyba bude vrátená, ak sa pokúsite vykonať nasledujúce SQL vyhlásenie:
INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES ('1′, 'My Customer'); INSERT INTO Zákazníci (Customer_ID, Customer_Name, narodeniny) VALUES ('1 ',' My Zákaznícky ');
or alebo
SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID FROM Orders); Select * from Zákazníci KDE (Customer_ID, Customer_Name) IN (SELECT Customer_ID objednávok);
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. Ak chcete vyriešiť chybu a opraviť tento problém, skontrolujte, či je počet hodnôt stanovených v stĺpci hodnôt časť je rovná, že stĺpy, alebo počet stĺpcov v tabuľke a meniť SQL vyhlásenia tak, aby boli rovnaké.
You can either reduce the number of columns, or increase the number of values provided to the column to make the SQL statement equaled. Môžete buď znížiť počet stĺpcov, alebo zvýšiť počet hodnôt, ktoré sú stĺpce urobiť vyhlásenie SQL equaled. This applies to the nested SQL statements with HAVING or WHERE clause too. To platí pre vnorené SQL vyhlásenie S alebo klauzulu WHERE taky. For example, the correct SQL statements should be like the following: Napríklad správny SQL vyhlásenie by mala byť rovnako ako nasledujúce:
INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES ('1′, 'My Customer', '08/08/1988′); INSERT INTO Zákazníci (Customer_ID, Customer_Name, narodeniny) VALUES ('1 ',' My zákazníkmi ','08 / 08/1988');
or alebo
INSERT INTO Customers (Customer_ID, Customer_Name) VALUES ('1′, 'My Customer'); INSERT INTO Zákazníci (Customer_ID, Customer_Name) VALUES ('1 ',' My Zákaznícky ');
or alebo
SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID, Customer_Name FROM Orders); Select * from Zákazníci KDE (Customer_ID, Customer_Name) IN (SELECT Customer_ID, Customer_Name objednávok);
or alebo
SELECT * FROM Customers WHERE (Customer_ID) IN (SELECT Customer_ID FROM Orders); Select * from Zákazníci KDE (Customer_ID) IN (SELECT Customer_ID objednávok);
IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: Stránka je stroje preložené a poskytované "tak ako sú" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Obráťte sa prosím na original English article Anglický originál článku whenever possible. kedykoľvek je to možné.
Related Articles Súvisiace články
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tabuľky alebo View neexistuje Oracle Chyba
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Tabuľka Chyba
- Easily Duplicate, Copy or Backup Tables in Oracle, PostgreSQL, DB2 and SQLite with Create Table As SQL Ľahko Duplikovať, kopírovanie alebo zálohovanie tabuľky v Oracle, PostgreSQL, DB2 a SQLite s Vytvorenie tabuľky SQL
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 Vytvoriť alebo Pridať nový oddiel nerozumie Chyba
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Vytvoriť, Pridať alebo Split Oracle Database oddiel nerozumie s ORA-14080 Chyba
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 chybu pri exporte databázy
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Dočasné Tablespace je prázdny Chyba v Oracle
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Nemožno vytvoriť POČIATOČNEJ Rozsah za Segment v Tablespace Chyba
- Oracle Database Import Error 3113/3114 Oracle Database Import Chyba 3113/3114
- IMP-00013 Oracle Import Error IMP-00013 Oracle Import Chyba









































