if(rs.next()) {
    System.out.println(rs.getInt(1));
}

解决方案 »

  1.   

    strsql="select * from TEST where A='D';
    你拉了个分号呀!
    应该是
    strsql="select * from TEST where A='D'";
      

  2.   

    strsql="select * from TEST where A='D';//露了一个"不是这个错吧
      

  3.   

    ORA-00600错误,内部错误代码,是oracle程序异常的一般性内部错误,它说明过程遇到一个低级的、未预料的条件,包括超时、文件损坏、内存数据检查失败、硬件内存或I/O错误、错误地恢复文件。收集一些信息,并将此错误报告给Oracle的支持与服务部门。
    ORA-00600 internal error code, arguments: [string], [string], [string], [string], [string], [string], [string], [string]Cause: This is the generic internal error number for Oracle program exceptions. It indicates that a process has encountered a low-level, unexpected condition. Causes of this message include:timeouts 
    file corruption 
    failed data checks in memory 
    hardware, memory, or I/O errors 
    incorrectly restored files The first argument is the internal message number. Other arguments are various numbers, names, and character strings. The numbers may change meanings between different versions of Oracle.Action: Report this error to Oracle Support Services after gathering the following information:events that led up to the error 
    the operations that were attempted that led to the error 
    the conditions of the operating system and databases at the time of the error 
    any unusual circumstances that occurred before receiving the ORA-00600 message 
    contents of any trace files generated by the error 
    the relevant portions of the Alter files Note: The cause of this message may manifest itself as different errors at different times. Be aware of the history of errors that occurred before this internal error.
      

  4.   

    改成這樣也提示相同的錯誤strsql="select * from TEST where A='D';