Software">
Lab 11 - Statement y ResultSet-2019 - GRUPO
Lab 11 - Statement y ResultSet-2019 - GRUPO
Lab 11 - Statement y ResultSet-2019 - GRUPO
- OBJETIVOS:
Instalar y configurar los componentes necesarios para programar en Java (Windows 10).
Crear, compilar, ejecutar y depurar programas de Java.
II.- SEGURIDAD:
Advertencia:
En este laboratorio está prohibida la manipulación del
hardware, conexiones eléctricas o de red; así como la
ingestión de alimentos o bebidas.
V.- RECURSOS:
En este laboratorio cada alumno trabará con un equipo con Windows 10.
La instalación del software requerido se realizará en un equipo Virtual
VII.- PROCEDIMIENTO:
ResultSet Results;
String nombre;
String apellidos;
String printrow;
boolean records=Results.next();
if (!records){
System.out.println("No hay datos");
return;
} else {
do {
nombre=Results.getString(nombre);
apellidos=Results.getString(apellidos);
printrow=nombre + “ “ + apellidos;
System.out.println(printrow);
} while (Results.next());
}
Aplicación 2: Utilizar el objeto Statement para ejecutar una consulta
EJERCICIOS
Registre alumnos
Mostrar alumnos
Realizar una búsqueda de alumnos por DNI
OBSERVACIONES:
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
CONCLUSIONES:
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________