コード例 #1
0
 public boolean add(AccountInfo info) throws SQLException {
   Statement statement = connection.createStatement();
   return statement.execute(
       "INSERT INTO account VALUES ('"
           + info.getSite()
           + "', '"
           + info.getAccount()
           + "', '"
           + info.getPassword()
           + "');");
 }