Class.forName("org.hsqldb.jdbcDriver"); Connection con = DriverManager.getConnection( "jdbc:hsqldb:/C:/MeusArquivos/projBlueJ/novo.db", "sa", ""); Statement stm = con.createStatement(); PreparedStatement pstm = con.prepareStatement( "INSERT INTO funcionario " + "(matricula, nome) VALUES (?, ?)"); SimpleDateFormat fmt = new SimpleDateFormat("hh:mm:ss:SSSS"); System.out.println(fmt.format(new java.util.Date())); MySQL Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/banco", "username","password"); PostgreSQL Class.forName("org.postgresql.Driver"); Connection connection = DriverManager.getConnection( "jdbc:postgresql://127.0.0.1:5432/testdb", "username", "password"); SQL Server Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); Connection conn = DriverManager.getConnection( "jdbc:sqlserver://MYPC\\SQLEXPRESS;databaseName=MYDB", "username", "password") ORACLE Class.forName("oracle.jdbc.driver.OracleDriver"); Connection conn = DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521/banco", "username", "password")