INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

2.png9.png0.png5.png4.png8.png7.png
Today492
Yesterday565
This week2701
This month4460
Total2905487

Visitor Info

  • IP: 3.144.154.208
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

4
Online

czwartek, 09 maj 2024 19:09

Pobieranie danych z MySQL do EXCEL

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna
 

Jak pobrać dane z MySQL do EXCELA

Pobieramy connector odbc
http://dev.mysql.com/downloads/connector/odbc/
Instalujemy ODBC w systemie
mysql-connector-odbc-5.2.4-winx64.msi
Przechodzimy do konfiguracji ODBC w systemie windows 7
Panel sterowania -> Narzędzia administracyjne -> Źródło danych (ODBC)

Rozpoczynamy konfigurację ODBC

 

 

 

 

 

 

 

  

 

 

 

 

 

 

 

 

 

 

 

 

Podczas konfiguracji mogą pojawić się błędy - błąd połączenia z serwerem należy sprawdzić hasło nazwę bazy lub czy wpisano poprawny port.

 

 

Po zakończeniu konfiguracji możemy pobierać dane do EXCELA

 

 

  1. Tworzymy w Excelu nowy arkusz (Worksheet).
  2. Wybieramy górne menu Dane (Data), wybieramy Dane Zewnętrzne (Import External Data) i wybieramy z innych źródeł z programu SQL ServerNew Database Query.

  3. Microsoft Query will start. First, you need to choose the data source, by selecting an existing Data Source Name.

    Microsoft Query, Choose Data Source
  4. Within the Query Wizard, choose the columns to import. The list of tables available to the user configured through the DSN is shown on the left, the columns that will be added to your query are shown on the right. The columns you choose are equivalent to those in the first section of a SELECT query. Click Next to continue.

    Microsoft Query, Choose Columns
  5. You can filter rows from the query (the equivalent of a WHERE clause) using the Filter Data dialog. Click Next to continue.

    Microsoft Query, Filter Data
  6. Select an (optional) sort order for the data. This is equivalent to using a ORDER BY clause in your SQL query. You can select up to three fields for sorting the information returned by the query. Click Next to continue.

    Microsoft Query, Sort Order
  7. Select the destination for your query. You can select to return the data Microsoft Excel, where you can choose a worksheet and cell where the data will be inserted; you can continue to view the query and results within Microsoft Query, where you can edit the SQL query and further filter and sort the information returned; or you can create an OLAP Cube from the query, which can then be used directly within Microsoft Excel. Click Finish.

    Microsoft Query, Selecting a destination

The same process can be used to import data into a Word document, where the data will be inserted as a table. This can be used for mail merge purposes (where the field data is read from a Word table), or where you want to include data and reports within a report or other document.

Search