Results 1 to 4 of 4

Thread: JDBC using Function

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    JDBC using Function

    Hi ,

    I am searching a simple Code How to do Using Function
    I have done a Stored Procedure using
    CallableStatement
    How to With Function ?

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: JDBC using Function

    The same. An SQL Function is a CallableStatement too.
    A Sample
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: JDBC using Function

    Thanks m8 For The Link
    What is The Difference between

    catch (SQLException e) {
    e.printStackTrace();

    and

    catch (SQLException e) {
    System.out.println(e.getMessage());

    printStackTrace() ?

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: JDBC using Function

    e.printStackTrace(); will print the stack trace (from the call stack, that led to the exception)

    System.out.println(e.getMessage()); will print the error message from the exception
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

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



Click Here to Expand Forum to Full Width