Tarea
crear carpeta
organizar iconos
click derecho y click izquierdo
propiedades de pantalla:
fondo
protector
apariencia
-mi pc:
buscar pendrive
propiedades de la pc
/** To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author clases
*//*
* To change this template, choose Tools | Templates
* andopen the template in the editor.
*/
/**
*
* @author clases
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.sql.*;public class Programa {
public static void main(String args[]){
try {
//Cargar clase de controlador de base de datos
Class.forName("com.mysql.jdbc.Driver");
//Crear el objeto deconexion a la base de datos
Connection conexion = DriverManager.getConnection("jdbc:mysql://localhost/ejemplo?user=root&password=");
//Crear objeto Statement para realizar queries a la base dedatos
Statement instruccion = conexion.createStatement();
//Un objeto ResultSet, almacena los datos de resultados de una consulta
ResultSet tabla = instruccion.executeQuery("SELECT cod ,nombre FROM datos");
System.out.println("Codigo\tNombre");
while(tabla.next())
System.out.println(tabla.getInt(1)+"\t"+tabla.getString(2));
}
catch(ClassNotFoundException e){System.out.println(e); }
catch(SQLException e){ System.out.println(e); }
catch(Exception e){ System.out.println(e); }
}
}
//Query = (Statement) conexion.openconexion("proyecyo,root,r)create statement()
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author clases
*/
/*
* To change this template, choose Tools| Templates
* and open the template in the editor.
*/
import java.sql.*;
public class Programa {
public static void main(String args[]){
try {
//Cargar clase de controlador de...
Regístrate para leer el documento completo.