Results 1 to 2 of 2
  1. #1
    jyotigupta6 is offline Member
    Join Date
    Oct 2008
    Posts
    11
    Rep Power
    0

    Default Re:SQL Exception

    Hi

    The code goes here -

    objStatement = objConnection.createStatement();
    objResultset = objStatement.executeQuery("select ORIGINAL_CONTENT from pdrepadm.CABI where DOC_ID=1");
    while(objResultset.next()){
    Clob clob = objResultset.getClob(1);
    BufferedReader reader = new BufferedReader(new InputStreamReader ( clob.getAsciiStream() ) );
    String line = null;
    while (( line = reader.readLine()) != null)
    {
    System.out.println(line);
    }
    reader.close();
    }

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. get exception name
    By jithan in forum New To Java
    Replies: 6
    Last Post: 06-05-2008, 02:29 PM
  2. Exception
    By rmaadil in forum JDBC
    Replies: 1
    Last Post: 05-19-2008, 12:45 PM
  3. Exception!
    By rameshraj in forum Advanced Java
    Replies: 1
    Last Post: 05-05-2008, 01:39 PM
  4. Replies: 1
    Last Post: 03-08-2008, 06:41 PM
  5. Exception
    By Camden in forum New To Java
    Replies: 2
    Last Post: 11-26-2007, 11:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •