I have two tables. And these tables have the same schema consisting of userid, username. I want to check if there is a common usernamein table1and table2.
rs1 = statement.executeQuery("select username from table1")
rs2 = statement.executeQuery("select username from table2")
My logic is:
while(rs1.next())- compare the value
rs1with each value rs2. Ifa match is found by typing one of the values else, type both values.
Is there any way to achieve this in java ... Please help me ... Thanks ...
user2024438
source
share