I have a table of two SQL columns, (name and address).
I want show the first and second data of the second column.
I am using this code
while (res.next()){
System.out.print(res.getString(2))
}
But it gives me the all of second column How can i show the first and second data