public static ResultSet query(Statement stat, String table, long uid, String... field) throws SQLException {
        ResultSet rs = null;
        StringBuffer sb = new StringBuffer();
        sb.append("select ");
        boolean bool = false;
        if (field == null || field.length == 0 || field[0].equals("")) {
            sb.append(" * ");
            bool = true;
        }
        if (!bool) {
            for (int i = 0; i < field.length; i++) {
                if (i == field.length - 1) {
                    sb.append(field[i]);
                    break;
                }
                sb.append(field[i]).append(",");
            }
        }
        sb.append(" from ")
                .append(table)
                .append(" where UID=")
                .append(uid);
        rs = stat.executeQuery(sb.toString());
        return rs;
    }