Oracle PL/SQL ORA-00947沒有足够的價值錯誤

在Oracle數據庫,以下錯誤信息也許出現使用一個不正確SQL聲明,於SQL加上或在任何地方那送SQL詢問到數據庫例如存儲過程或外部節目。

PL/SQL : 被忽略的SQL聲明
PL/SQL : ORA-00947 : 沒有足够的價值


ORA-00947錯誤的原因是SQL聲明要求在SQL數量上指定是相等的二套列數的價值,即數字和它的價值。 但是專欄價值詢問的第二個部分比是列數的第一個部分包含少量項目。 錯誤在所有种SQL聲明-插入物,更新可以發生或選擇-,并且它在可能也發生或有被築巢的次級選擇回歸很少專欄的條目的地方。 如果SQL不指定專欄,它意味著被輸入的價值是較少專欄在桌裡在數據庫存在了。

例如,如果您設法執行以下SQL聲明, ORA-00947錯誤將返回:

插入物到顧客(Customer_ID, Customer_Name,生日)價值(』 1 ′, `裡我的顧客』);

選擇*從顧客(Customer_ID, Customer_Name) (精選的Customer_ID從命令);

要解決錯誤和改正問題,檢查在專欄價值零件提供的價值的數量是均等專欄指定或者列數在桌裡,并且改變SQL聲明使他們相等。

您可以或者減少列數,或者增加價值的數量提供給專欄做合計的SQL聲明。 這適用於被築巢的SQL聲明以有或條目也是的地方。 例如,正確SQL聲明應該是像以下:

插入物到顧客(Customer_ID, Customer_Name,生日)價值(』 1 ′、`我的顧客』, `08/08/1988 ′)裡;

插入物到顧客(Customer_ID, Customer_Name)價值(』 1 ′, `裡我的顧客』);

選擇*從顧客(Customer_ID, Customer_Name) (精選的Customer_ID, Customer_Name從命令);

選擇*從顧客(Customer_ID) (精選的Customer_ID從命令);

重要: 這是現狀提供,不用保單的機器翻譯的頁。 計算機翻譯也許是難瞭解。 參見 原始的英國文章 每當可能。

分享并且貢獻或者得到技術支持并且幫助在 我的數字式生活論壇.



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>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

ORA-00947 - ORA-00947: not enough values - PL/SQL: ORA-00947: not enough values - ORA 00947 - not enough values - oracle not enough values - cause a time delay in an oracle insert - not enough value Oracle - PL/SQL: ORA-00947 - PLS-00947 - PL/SQL: ORA-00947: not enough values - sql not enough values - oracle ORA-00947: not enough values - PLSQL PL/SQL: ORA-00947: not enough values - ora-00947 not enough values - oracle "not enough values" - ora-00947 insert - find error value with ORA in oracle - not enough values - inserting only few values in the table pl/sql - oracle pl/sql error - PL/SQL: ORA-00947: not enough values in oracle - SQL Error ORA-00947 - no enough values in oracle - PL/SQL: SQL Statement ignored - error 3114 create new item oracle - not enough values error - ORA-00947: not enough values - "ORA-00947: not enough values" - 00947 - NOT ENOUGH VALUES SQL - oracle pl/sql on serbian - SQL Error: ORA-00947 - SQL Error: ORA-00947: not enough values - select in PL/SQL INSERT into table values - Not enough values Oracle error - Error(113,43): PL/SQL: ORA-00947: not enough values - error not enough values - oracle pl/sql error checking - oracle error not enough values - enter value for + oracle pl/sql error - Oracle "PL/SQL" "@SQLStatement" - pls 00947 - ORA-00947: Niet genoeg waarden - ORA-00947: not enough values shutdown - ORA-00947: not enough values in oracle - oracle pl/sql free video - ORA:00947 Not enough values in Oracle - PL\SQL+SELECT+not enough values - pl/sql "not enough values" -