JAVA DUPLICATION TABLE

Author Topic: JAVA DUPLICATION TABLE  (Read 22052 times)

Offline varnishakalraTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
JAVA DUPLICATION TABLE
« on: 08-22-2019, 00:25:30 »
public class MultiplicationTable {
    public static void main(String[] args) {
        int num = 5;
        for(int i = 1; i <= 10; ++i)
        {
            System.out.printf("%d * %d = %d \n", num, i, num * i);
        }
    }
}




is it right duplication table or not?


Offline brookeroberts7

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 172
  • Karma: 0
Re: JAVA DUPLICATION TABLE
« Reply #1 on: 08-27-2020, 05:35:28 »
Connection connection1 = // set up connection to dbms1
Statement statement = connection1.createStatement();
ResultSet result = statement.executeQuery("select * from ............. ");

Connection connection2 =  // set up connection to dbms2
// Now I want to upload the ResultSet result into the second database
Statement statement2 = connection2.createStatement("insert into table2 " + result);
statement2.executeUpdate();

Offline Lishmalinyjames

  • Trade Count: (0)
  • Sr. Member
  • ****
  • Thank You 1
  • Posts: 431
  • Karma: 0
    • Oneplus Service Center in Chennai
Re: JAVA DUPLICATION TABLE
« Reply #2 on: 01-21-2021, 04:47:09 »
Yes, it is

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
4119 Views
Last post 09-20-2011, 03:35:58
by Walalayo
0 Replies
1864 Views
Last post 10-13-2011, 02:12:02
by manvbf
3 Replies
9087 Views
Last post 08-19-2015, 01:48:54
by SanviMalhotra
0 Replies
1558 Views
Last post 11-14-2016, 03:19:21
by aarav
0 Replies
3400 Views
Last post 03-25-2017, 03:24:17
by beingchinmay