oracle ORA-06550

來源:互聯網
上載者:User

標籤:oracle   ora-06550   

declare
 cnt integer;
begin
    select count(0)
    into cnt
    from user_all_tables
   where table_name = upper(‘DPS_BIZTYPES_MANAGE‘);


    if cnt = 0 then
  execute immediate ‘  create table DPS_BIZTYPES_MANAGE
(
 id Integer not null,
 BIZTYPE           VARCHAR2(4) not null,
 BIZNAME           VARCHAR2(30) not null,
 DEPOSITTYPE       VARCHAR2(6) not null,
 KMH               VARCHAR2(32) not null,
 DEPOSITTERM       INTEGER not null,
 STDRATE           NUMBER(10,6) not null,
 LOWRATE           NUMBER(10,6) not null,
 BOTTOMAMOUNT      NUMBER(15,2),
 MINWITHDRAWAMOUNT NUMBER(15,2),
 "COMMENT"         VARCHAR2(255),
 CREATETIME        DATE default SYSDATE not null,
 LASTUPDATETIME    DATE,
 DRAWAMOUNT        NUMBER(15,2),
 COMMENTS          VARCHAR2(255),
 BZ                VARCHAR2(3) default ‘R‘,
 RATEFLOATUP       NUMBER(8,2),
 RATEFLOATDOWN     NUMBER(8,2),
 state INTEGER   default 0,
 stateName VARCHAR2(32),
 rejectreason VARCHAR2(255)
)‘;
    end if;
end;
 
ORA-06550: 第 28 行, 第 44 列: 
PLS-00103: 出現符號 "R"在需要下列之一時:
 * & = - + ; < / > at in is
   mod remainder not rem return returning <an exponent (**)>
   <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_
   between into using || multiset bulk member SUBMULTISET_
符號 "*在 "R" 繼續之前已插入。


改成BZ                VARCHAR2(3) default ‘‘R‘‘,


單引號括起來裡面的單引號要用單引號轉義,即兩個表示一個。

oracle ORA-06550

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.