Query in callable statement

Discussion in 'Java' started by sanjeev.ssingh@gmail.com, Oct 10, 2006.

  1. Guest

    Can i pass a query in callable statement ?

    Thanks
     
    , Oct 10, 2006
    #1
    1. Advertisements

  2. Yes, that is what callable statements are for.

    -cheers,
    Manish
     
    Manish Pandit, Oct 10, 2006
    #2
    1. Advertisements

  3. wrote:
    > Can i pass a query in callable statement ?


    Normally you use PreparedStatement for queries
    and CallableStatement for stored procedure calls.

    Why do you want to use CallableStatement for query ?

    Arne
     
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=, Oct 10, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    1,059
  2. Jay McGavren
    Replies:
    11
    Views:
    1,460
    Alan Krueger
    Jan 16, 2006
  3. tedsuzman
    Replies:
    2
    Views:
    7,572
    Michel Claveau, résurectionné d'outre-bombe inform
    Jul 21, 2004
  4. Ted
    Replies:
    1
    Views:
    674
    Duncan Booth
    Jul 22, 2004
  5. ChaosKCW
    Replies:
    1
    Views:
    348
    Larry Bates
    Feb 25, 2006
  6. lightning

    mysql callable statement problem

    lightning, Feb 11, 2007, in forum: Java
    Replies:
    1
    Views:
    883
    petersprc
    Feb 11, 2007
  7. exiquio
    Replies:
    2
    Views:
    710
    exiquio
    Oct 7, 2008
  8. Ulrich Eckhardt
    Replies:
    6
    Views:
    352
    Peter Otten
    Jul 12, 2013
Loading...