I have a table called ClientsTable and a database called myDb .
How can I print with System.out.prinln() the entire database ? I just want to select all the rows and present all the fields to the screen .
Thanks
EDIT: what should I put instead of rs.getString() , here (since it doesn’t compile):
ResultSet rs = this.m_statement.executeQuery("SELECT * FROM CheckingAccountsTable");
while (rs.next())
System.out.println(rs.getString());
if you don’t know how many colums are in the table, try something like this :