Hi all,
PreparedStatement prep = conn.prepareStatement("select company_name, contact_name, address, address2, city, pcode, country, phone, fax, email, website from customer");
ResultSet rs = prep.executeQuery();
while (rs.next()) {
//what I would like to do here is to set up a variable which includes several fields like
//contactMail = "address, address2, city, pcode, country";
//but keep some fields as they are
String company_name = rs.getString("company_name");
}
any ideas?
Thanks
PreparedStatement prep = conn.prepareStatement("select company_name, contact_name, address, address2, city, pcode, country, phone, fax, email, website from customer");
ResultSet rs = prep.executeQuery();
while (rs.next()) {
//what I would like to do here is to set up a variable which includes several fields like
//contactMail = "address, address2, city, pcode, country";
//but keep some fields as they are
String company_name = rs.getString("company_name");
}
any ideas?
Thanks