<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    ZhipSoft.com
        冬去春來(lái)
            鄭重聲明:本Blog純屬個(gè)人學(xué)習(xí)、工作需要,記錄相關(guān)資料。請(qǐng)不要發(fā)表任何有人身攻擊的言論,謝謝!!www.ZhipSoft.com
    posts - 94,comments - 149,trackbacks - 0
    各種常見(jiàn)java.sql.SQLException歸納
    java.sql.SQLException錯(cuò)誤,將英文原文一并列出,以供查閱!
    ORA-00904:    invalid column name 無(wú)效列名
    ORA-00942:  table or view does not exist 表或者視圖不存在
    ORA-01400:  cannot insert NULL into () 不能將空值插入
    ORA-00936: 缺少表達(dá)式
    ORA-00933: SQL 命令未正確結(jié)束
    ORA-01722: 無(wú)效數(shù)字:(一般可能是企圖將字符串類(lèi)型的值填入數(shù)字型而造成)
    ORA-06530:  ACCESS_INTO_NULL 
    Your  program  attempts  to  assign  values  to  the  attributes  of  an  uninitialized  (atomically  null)  object.
    企圖將值寫(xiě)入未初化對(duì)象的屬性
    ORA-06592:  CASE_NOT_FOUND
    None  of  the  choices  in  the  WHEN  clauses  of  a  CASE  statement  is  selected,  and  there  is  no  ELSE  clause.
    case語(yǔ)句格式有誤,沒(méi)有分支語(yǔ)句
    ORA-06531:  COLLECTION_IS_NULL
    Your  program  attempts  to  apply  collection  methods  other  than  EXISTS  to  an  uninitialized  (atomically  null) 
    nested  table  or  varray,  or  the  program  attempts  to  assign  values  to  the  elements  of  an  uninitialized  nested 
    table  or  varray.
    企圖將集合填入未初始化的嵌套表中
    ORA-06511:  CURSOR_ALREADY_OPEN
    Your  program  attempts  to  open  an  already  open  cursor.  A  cursor  must  be  closed  before  it  can  be  reopened.  A
     cursor  FOR  loop  automatically  opens  the  cursor  to  which  it  refers.  So,  your  program  cannot  open  that  cursor
     inside  the  loop.
    企圖打開(kāi)已經(jīng)打開(kāi)的指針.指針已經(jīng)打開(kāi),要再次打開(kāi)必須先關(guān)閉.
    ORA-00001:  DUP_VAL_ON_INDEX
    Your  program  attempts  to  store  duplicate  values  in  a  database  column  that  is  constrained  by  a  unique  index.
    數(shù)據(jù)庫(kù)字段存儲(chǔ)重復(fù),主鍵唯一值沖突
    ORA-01001:  INVALID_CURSOR 無(wú)效指針
    Your  program  attempts  an  illegal  cursor  operation  such  as  closing  an  unopened  cursor.
    非法指針操作,例如關(guān)閉未打開(kāi)的指針
    ORA-01722:  INVALID_NUMBER 無(wú)效數(shù)字
    In  a  SQL  statement,  the  conversion  of  a  character  string  into  a  number  fails  because  the  string  does  not 
    represent  a  valid  number.  (In  procedural  statements,  VALUE_ERROR  is  raised.)  This  exception  is  also  raised 
    when  the  LIMIT-clause  expression  in  a  bulk  FETCH  statement  does  not  evaluate  to  a  positive  number.
    在sql語(yǔ)句中,字符數(shù)字類(lèi)型轉(zhuǎn)換錯(cuò)誤,無(wú)法將字符串轉(zhuǎn)化成有效數(shù)字.此錯(cuò)誤也可能因?yàn)樵趌imit從句表達(dá)式中fetch語(yǔ)句無(wú)法對(duì)應(yīng)指定數(shù)字
    ORA-01017:  LOGIN_DENIED 拒絕訪(fǎng)問(wèn)
    Your  program  attempts  to  log  on  to  Oracle  with  an  invalid  username  and/or  password.
    企圖用無(wú)效的用戶(hù)名或密碼登錄oracle
    ORA-01403:  NO_DATA_FOUND  無(wú)數(shù)據(jù)發(fā)現(xiàn)
    A  SELECT  INTO  statement  returns  no  rows,  or  your  program  references  a  deleted  element  in  a  nested  table  or 
    an  uninitialized  element  in  an  index-by  table.  SQL  aggregate  functions  such  as  AVG  and  SUM  always  return  a 
    value  or  a  null.  So,  a  SELECT  INTO  statement  that  calls  an  aggregate  function  never  raises  NO_DATA_FOUND. 
    The  FETCH  statement  is  expected  to  return  no  rows  eventually,  so  when  that  happens,  no  exception  is  raised.
      
    ORA-01012:  NOT_LOGGED_ON   未登錄
    Your  program  issues  a  database  call  without  being  connected  to  Oracle.
    程序發(fā)送數(shù)據(jù)庫(kù)命令,但未與oracle建立連接
      
    ORA-06501:  PROGRAM_ERROR  程序錯(cuò)誤
    PL/SQL  has  an  internal  problem.
    pl/sql系統(tǒng)問(wèn)題
      
    ORA-06504:  ROWTYPE_MISMATCH  行類(lèi)型不匹配
    The  host  cursor  variable  and  PL/SQL  cursor  variable  involved  in  an  assignment  have  incompatible  return  types. 
    For  example,  when  an  open  host  cursor  variable  is  passed  to  a  stored  subprogram,  the  return  types  of  the 
    actual  and  formal  parameters  must  be  compatible. 
      
    ORA-30625:  SELF_IS_NULL  
    Your  program  attempts  to  call  a  MEMBER  method  on  a  null  instance.  That  is,  the  built-in  parameter  SELF 
    (which  is  always  the  first  parameter  passed  to  a  MEMBER  method)  is  null.
      
    ORA-06500:  STORAGE_ERROR  存儲(chǔ)錯(cuò)誤
    PL/SQL  runs  out  of  memory  or  memory  has  been  corrupted.
    PL/SQL運(yùn)行內(nèi)存溢出或內(nèi)存沖突
          
    ORA-06533:  SUBSCRIPT_BEYOND_COUNT   子句超出數(shù)量
    Your  program  references  a  nested  table  or  varray  element  using  an  index  number  larger  than  the  number  of 
    elements  in  the  collection.
      
    ORA-06532:  SUBSCRIPT_OUTSIDE_LIMIT   子句非法數(shù)量
    Your  program  references  a  nested  table  or  varray  element  using  an  index  number  (-1  for  example)  that  is 
    outside  the  legal  range.
      
    ORA-01410:  SYS_INVALID_ROWID   無(wú)效的字段名
     The  conversion  of  a  character  string  into  a  universal  rowid  fails  because  the  character  string  does  not 
    represent  a  valid  rowid. 
      
    ORA-00051:  TIMEOUT_ON_RESOURCE    資源等待超時(shí)
    A  time-out  occurs  while  Oracle  is  waiting  for  a  resource. 
      
    ORA-01422:  TOO_MANY_ROWS    返回超過(guò)一行
    A  SELECT  INTO  statement  returns  more  than  one  row.
      
    ORA-06502:  VALUE_ERROR   值錯(cuò)誤
    An  arithmetic,  conversion,  truncation,  or  size-constraint  error  occurs.  For  example,  when  your  program  selects 
    a  column  value  into  a  character  variable,  if  the  value  is  longer  than  the  declared  length  of  the  variable, 
    PL/SQL  aborts  the  assignment  and  raises  VALUE_ERROR.  In  procedural  statements,  VALUE_ERROR  is  raised  if  the 
    conversion  of  a  character  string  into  a  number  fails.  (In  SQL  statements,  INVALID_NUMBER  is  raised.) 
      
    ORA-01476:  ZERO_DIVIDE  除0錯(cuò)誤
    Your  program  attempts  to  divide  a  number  by  zero. 

    用盡的 Resultset
             java.sql.SQLException: 用盡的 Resultset
             原因 :忘了寫(xiě)rs.next(),rs.next()的作用就是使指向記錄集的指針往下移動(dòng)一行,如果有記錄的話(huà)則返回真,否則返回否



            本Blog純屬個(gè)人學(xué)習(xí)、工作需要,記錄相關(guān)資料。請(qǐng)不要發(fā)表任何有人身攻擊的言論,謝謝! www.zhipsoft.cn
    posted on 2007-05-11 13:25 ZhipSoft 閱讀(3890) 評(píng)論(1)  編輯  收藏 所屬分類(lèi): DataBase

    FeedBack:
    # re: 各種常見(jiàn)java_sql_SQLException歸納
    2011-10-12 15:12 | yuhu
    ORA-02292:違反完整約束條件  回復(fù)  更多評(píng)論
      
    主站蜘蛛池模板: 免费被黄网站在观看| 亚洲精品无播放器在线播放| 四虎永久免费地址在线观看| 亚洲综合免费视频| 免费网站观看WWW在线观看| 18禁亚洲深夜福利人口| 亚洲中文字幕无码av在线| 久久久亚洲精品国产| jlzzjlzz亚洲乱熟在线播放| 日本无吗免费一二区| 中文免费观看视频网站| 免费黄色电影在线观看| 久久久久久国产a免费观看不卡 | 永久免费不卡在线观看黄网站| 国产亚洲Av综合人人澡精品| 亚洲av永久综合在线观看尤物| 亚洲AV美女一区二区三区| 亚洲综合av永久无码精品一区二区| 国产免费私拍一区二区三区| 国产成人免费网站| 2020久久精品国产免费| 精品久久8x国产免费观看| 免费视频成人片在线观看| 国产精品区免费视频| 免费人成网站在线观看不卡| 毛片基地看看成人免费| 国产免费福利体检区久久| 一级特黄色毛片免费看| 一级做a爰全过程免费视频毛片 | 亚洲国产精品碰碰| 国产免费av一区二区三区| 日本xxwwxxww在线视频免费 | 美国毛片亚洲社区在线观看| 久久亚洲国产成人影院| 国产成人精品日本亚洲18图| 亚洲欧洲精品一区二区三区| 337p日本欧洲亚洲大胆艺术| 亚洲色图在线观看| 亚洲一区精品视频在线| 一本色道久久88—综合亚洲精品 | 麻豆国产精品入口免费观看|