public static int add(String name, String pwd, String comments){        //insert䣬һ
        name="'"+name+"'";          //sql
        pwd="'"+pwd+"'";
        comments="'"+comments+"'";
        sql="INSERT INTO Pwd (Name,Pwd,comments) VALUES " + "(" + name + ","+pwd+","+comments+")";

        DB.sql(sql);        //ִsql

        String sql2= "Select * from pwd where name="+name;      //½ݵID
        int resultID = -1;
        ResultSet rs=DB.sqlQuery(sql2);

        try {
            while (rs.next()){
                resultID=rs.getInt("ID");
            }

        } catch (SQLException e) {
            e.printStackTrace();
        }
        return resultID;        //ID

    }