private static void exportTable(Connection connect, List<String> names, String zipName) throws SQLException, FileNotFoundException, IOException {
        
        FileOutputStream fos = null;
        ZipOutputStream zos = null;
        ZipEntry ze = null;
        
        try {
            fos = new FileOutputStream(zipName);
            zos = new ZipOutputStream(fos);
            
            String timestamp = new SimpleDateFormat("yyyyMMddhhmmss").format(new Date());
            
            for(String str : names)
            {
                String resultString = "";
                String fileName = "output_" + str + "_" + timestamp + ".csv";
                
                ze = new ZipEntry(fileName);
                zos.putNextEntry(ze);
                
                PreparedStatement ps = connect.prepareStatement("SELECT * FROM " + str);
                ResultSet rs = ps.executeQuery();
                ResultSetMetaData rsmd = rs.getMetaData();
                
                int columnCount = rsmd.getColumnCount();
                
                while(rs.next())
                {
                    resultString = "";
                    for(int i = 1; i <= columnCount; i++)
                    {
                        resultString += rs.getString(i) + ",";
                    }
                    resultString += "\n";
                    
                    byte[] buffer = resultString.getBytes();
                    zos.write(buffer);
                }
                
                zos.closeEntry();
            }
            
        }catch(Exception e)
        { }
        finally{
            zos.close();
            fos.close();
        }
    }