📜  mysql jdbc 查询 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:30.037000             🧑  作者: Mango

代码示例1
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)