Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL ORA-00947 Not Enough vērtību kļūda

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 datu bāzes, šāds kļūdas ziņojums var parādīties, kad nepareizs SQL izmanto, SQL Plus vai jebkurā vietā, kas nosūta SQL vaicājumus datu bāzēm, piemēram, uzglabā procedūru vai ārējām programmām.

PL/SQL: SQL Statement ignored PL / SQL: SQL ignorēt
PL/SQL: ORA-00947: not enough values PL / SQL: ORA-00947: nav pietiekami vērtības


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. Iemesls ORA-00947 kļūda ir tad, ja SQL prasa divas vērtības, proti, vairāki kolonnu skaits un vērtība, kas ir norādītas SQL ir vienāds numurs. 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 otrā daļa vaicājums, kas slejas vērtības ir mazāk preču, nekā pirmā daļa, kas ir kolonnu skaitu. 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. Kļūda notiek, visu veidu SQL paziņojumi - ievadīt, aktualizēt vai Select - un tas var notikt arī WHERE vai ar klauzulu, kas nested sub-SELECT atgriež pārāk maz kolonnas. If the SQL does not specify columns, it means that the values entered are less that the columns existed in the table in database. Ja SQL neprecizē kolonnas, tas nozīmē, ka vērtībām, kas ir mazāk nekā kolonnas pastāvēja tabulā datubāzē.

For example, the ORA-00947 error will be returned if you try to execute the following SQL statements: Piemēram, ORA-00947 kļūdas tiek atgriezta, ja jūs mēģināt izpildīt šādus SQL paziņojumi:

INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES ('1′, 'My Customer'); INSERT INTO klienti (Customer_ID, Customer_Name, Birthday) VALUES ('1 ',' Mans Klientu ');

or vai

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 FROM Orders);

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. Lai atrisinātu kļūdas un labot problēmu, pārliecinieties, ka ir vērtības, kas slejas vērtības daļu skaits ir vienāds, ka kolonnas norādīta vai kolonnu skaitu tabulā un maina SQL, lai tos vienādi.

You can either reduce the number of columns, or increase the number of values provided to the column to make the SQL statement equaled. Jūs varat vai nu samazināt kolonnu skaitu vai arī palielināt skaitu, vērtības, lai kolonna padarīt SQL equaled. This applies to the nested SQL statements with HAVING or WHERE clause too. Tas attiecas uz nested SQL ar kura ir vai WHERE klauzulu pārāk. For example, the correct SQL statements should be like the following: Piemēram, pareizi SQL vajadzētu būt šādi:

INSERT INTO Customers (Customer_ID, Customer_Name, Birthday) VALUES ('1′, 'My Customer', '08/08/1988′); INSERT INTO klienti (Customer_ID, Customer_Name, Birthday) VALUES ('1 ',' Mans Klientu ', '08 / 08/1988');

or vai

INSERT INTO Customers (Customer_ID, Customer_Name) VALUES ('1′, 'My Customer'); INSERT INTO klienti (Customer_ID, Customer_Name) VALUES ('1 ',' Mans Klientu ');

or vai

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 no pasūtījumiem);

or vai

SELECT * FROM Customers WHERE (Customer_ID) IN (SELECT Customer_ID FROM Orders); SELECT * FROM Customers WHERE (Customer_ID) in (SELECT Customer_ID FROM Orders);

IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanu var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.


Leave a Reply Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Jūs varat izmantot šos tagus: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Saņemt informāciju par jaunāko komentārus, parakstīties uz My Digital Life Comments RSS feed Mana Digital Life Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

New Articles Jauns pants

Incoming Search Terms for the Article Ienākošo Meklēt noteikumi pants

PL/SQL: ORA-00947: not enough values PL / SQL: ORA-00947: nav pietiekami vērtības - -- not enough value Nepietiek vērtība - -- create PL/SQL Package +DB2 +"in tablespace" radīt PL / SQL paketes + DB2 + "in tablespace" - -- ora-00947 insert into ora-00947 jāiekopē - -- oracle not enough values Oracle nepietiek vērtības - -- oracle error 947 Oracle kļūda 947 - -- ORA-00947 +ORACLE ORA-00947 + ORACLE - -- SELECT INTO ora-00947 SELECT INTO ora-00947 - -- sql code 947 oracle sql kods 947 orākuls - -- PL/SQL: SQL Statement ignored PL/SQL: ORA-00947: not enough values PL / SQL: SQL ignorētas PL / SQL: ORA-00947: nav pietiekami vērtības - -- all viss - -- ORA-00947: not enough values ORA-00947: nav pietiekami vērtības - -- oracle not enough values error Oracle nepietiek vērtību kļūda - -- PL/SQL: ORA-00947 select into PL / SQL: ORA-00947 izvēlieties vērā - -- pl/sql ORA-00947 PL / SQL ORA-00947 - -- PL/SQL INSERT INTO VALUES PL / SQL INSERT INTO VALUES - --