void listIPGroupFromDatabase(ServerInfoDAO serverInfoDAO){
        if (serverInfoDAO.queryAll().size() == 0){
            HelpPrompt.printNoDataInDataBase();
        } else {
            HelpPrompt.printListServer();
            String ask_list_group = getInputContent();
            if (! FunctionKit.checkStringLengthIsZero(ask_list_group)){
                HelpPrompt.printInputError();
            } else {
                String list_group[] = ask_list_group.split("\\s+");
                if (list_group.length == 1 && "all".equals(list_group[0])){
                    List<String> result = serverInfoDAO.queryIPServerGroup();
                    for (String ip_group : result){
                        System.out.println(ip_group);
                    }
                } else {
                    for (String group_name : list_group){
                        if (serverInfoDAO.queryAllFieldByServerGroup(group_name).size() != 0){
                            for (String ip_group : serverInfoDAO.queryIPServerGroupByServerGroup(group_name)){
                                System.out.println(ip_group);
                            }
                        } else {
                            HelpPrompt.printIpOrGroupNotExists(group_name);
                        }
                    }
                }
            }
        }
    }