i am using following code for get data from database but data is in big quantity so string is not hold all data so what is the process to get all data from database
spst=scon.prepareStatement("SELECT dbQuery FROM alyss where license=?");
spst.setString(1, key);
ResultSet rs = spst.executeQuery();
while(rs.next()){
DBQuery = rs.getNString("dbQuery");
}