Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 non bastano i valori di errore
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. Nel database Oracle, il seguente messaggio di errore può essere visualizzato quando un errata istruzione SQL è utilizzato, in SQL Plus o in qualsiasi punto che inviano query SQL alle basi di dati come ad esempio stored procedure o programmi esterni.
PL/SQL: SQL Statement ignored PL / SQL: SQL Dichiarazione ignorato
PL/SQL: ORA-00947: not enough values PL / SQL: ORA-00947: non bastano i valori
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. Il motivo per ORA-00947 errore è quando una istruzione SQL richiede due serie di valore, vale a dire numero di numero di colonne e il suo valore che sono specificate nel SQL ad essere in numero pari. But the second part of the query which is column values contains fewer items than the first part which is the number of columns. Ma la seconda parte della query che è colonna di valori contiene un numero inferiore di oggetti rispetto alla prima parte che è il numero di colonne. 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. La errore può succede in tutti i tipi di istruzioni SQL - INSERT, UPDATE o Seleziona - e può verificarsi anche in una o abbia DOVE clausola in cui un sotto-nidificate SELECT restituisce troppo pochi colonne. 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 se non specifica colonne, significa che i valori iscritti sono meno che le colonne esisteva nella tabella nel database.
For example, the ORA-00947 error will be returned if you try to execute the following SQL statements: Per esempio, l'ORA-00947 errore verrà restituito se si tenta di eseguire le seguenti istruzioni SQL:
INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES (’1′, ‘My Customer’); INSERT INTO Clienti (Customer_ID, Customer_Name, Compleanno) VALUES ('1 ',' Il mio cliente ');
or o
SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID FROM Orders); SELECT * FROM utenti WHERE (Customer_ID, Customer_Name), IN (SELECT Customer_ID da ordinazioni);
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. Per risolvere l'errore e risolvere il problema, verificare che il numero di valori forniti nella colonna valori parte è uguale che le colonne specificato, o il numero di colonne della tabella e modificare l'istruzione SQL per renderli uguali.
You can either reduce the number of columns, or increase the number of values provided to the column to make the SQL statement equaled. È possibile ridurre il numero di colonne, o aumentare il numero di valori forniti alla colonna di rendere l'istruzione SQL equaled. This applies to the nested SQL statements with HAVING or WHERE clause too. Ciò vale per le istruzioni SQL nidificate abbia o con clausola WHERE troppo. For example, the correct SQL statements should be like the following: Per esempio, la corretta istruzioni SQL dovrebbe essere come la seguente:
INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES (’1′, ‘My Customer’, ‘08/08/1988′); INSERT INTO Clienti (Customer_ID, Customer_Name, Compleanno) VALUES ('1 ',' Il mio cliente ','08 / 08/1988');
or o
INSERT INTO Customers (Customer_ID, Customer_Name) VALUES (’1′, ‘My Customer’); INSERT INTO Clienti (Customer_ID, Customer_Name) VALUES ('1 ',' Il mio cliente ');
or o
SELECT * FROM Customers WHERE (Customer_ID, Customer_Name) IN (SELECT Customer_ID, Customer_Name FROM Orders); SELECT * FROM utenti WHERE (Customer_ID, Customer_Name), IN (SELECT Customer_ID, Customer_Name da ordinazioni);
or o
SELECT * FROM Customers WHERE (Customer_ID) IN (SELECT Customer_ID FROM Orders); SELECT * FROM utenti WHERE (Customer_ID), IN (SELECT Customer_ID da ordinazioni);
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Questa è una pagina tradotta macchina che è fornito "così com'è" senza alcuna garanzia. Machine translation may be difficult to understand. Traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale in lingua inglese whenever possible. quando possibile.
Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e assistenza in My Digital Life Forums La mia vita digitale Forum .
Related Articles Articoli correlati
- Oracle Database Import Error 3113/3114 Database Oracle errore di importazione 3113/3114
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Creare, aggiungere o Spalato Oracle Database partizione non riesce a ORA-14080 Errore
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tabella o visualizzare non esiste errore di Oracle
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle goccia tabella di errore
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Impossibile creare INIZIALE Estensione per il segmento in errore Tablespace
- ORA-01502 Oracle Index in Unusable State ORA-01502 Indice di Oracle in Unusable Stato
- Manual and Clean Uninstall Oracle for Windows Pulizia manuale e la disinstallazione di Oracle per Windows
- Oracle ORA-14074 Create or Add New Partition Fails Error Oracle ORA-14074 creare o aggiungere nuova partizione non errore
- How to Rename or Move Oracle Tablespace Datafile to Another Location Come rinominare o spostare Oracle tablespace archivio dei dati in un'altra posizione
- How to Escape Characters in Oracle PL/SQL Queries Come sfuggire caratteri in Oracle PL / SQL














