Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Insertion and select in JDBC for two different databse

  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Insertion and select in JDBC for two different databse

    hi all,
    Can you tell me how i can insert data into a databse and at same time in the same method how do i select data from the different table in different databsse


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Insertion and select in JDBC for two different databse

    Moved to JDBC and Databases

    In the same SQL call, don't think you can unless you have stored procedures and/or triggers. In the same java method, just create a statement, make the SQL calls, and parse the result set where appropriate.
    Last edited by copeg; November 15th, 2010 at 08:17 PM.

Similar Threads

  1. Two insertion into RDBMS
    By nrao in forum JDBC & Databases
    Replies: 4
    Last Post: November 11th, 2010, 08:13 PM
  2. [SOLVED] Sorting a vector using insertion
    By DM21 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 25th, 2010, 05:36 PM
  3. Replies: 3
    Last Post: April 14th, 2010, 07:33 PM
  4. select count(*)
    By jacinto in forum JDBC & Databases
    Replies: 4
    Last Post: March 2nd, 2010, 10:30 PM