mysql jdbc query
snippet in sql

mysql jdbc query

user5795

Connection conn = DriverManager.getConnection(url,username,password);
Statement stmt  = conn.createStatement();
String sql = "SELECT first_name, last_name, email " +
             "FROM candidates";
ResultSet rs    = stmt.executeQuery(sql)